empreinte-digitale/orejime

Problems with translations in a site in 2 languages with Nederlands language

sede1900 opened this issue · 5 comments

Hello
I have a site in 2 languages, fr and nl
but only fr is displayed, in nl pages with debug : true
I see this
[missing translation: nl/enabled] orejime.js:25
[missing translation: nl/app/purpose] orejime.js:25
[missing translation: nl/disabled] ...

lang parameter is not settled in orejimeConfig file
my translations object is like this
translations: { fr: { website: { description: 'Cookie(s) nécessaire(s) au bon fonctionnement de notre site', }, matomo: { description: 'Pour collecter les statistiques de visite sur notre site', }, purposes: { analytics: 'Statistiques', server: 'Infrastructure', }, }, nl: { website: { description: 'Cookies noodzakelijk voor het goed functioneren van onze site', }, matomo: { description: 'Om bezoekstatistieken op onze site te verzamelen', }, purposes: { analytics: 'Statistiek', server: 'Infrastructuur', }, }, },

An idea ?

ok I understand you don't export the nl language object in your js file installed with npm
I search : nl:{consentModal but no result in your js file
can you generate a new minified js file with this language 'nl' too and publish it to npm ?

I see that the content of this language file is outdated when I compare it with the fr.yml
do you want that I send you the translations for all variables in nl ?

I have pushed the adaptations for the nl.yml, can you validate the pull request ?
and generate a new minified js file with the nl translation included ?
thanks :)

Hi,
I just published a version 1.2.1 with your changes, let me know if everything is ok ;)

hi, I have updated my package but when I search about nl: in the minified js
I don't find nl translations in your new published version

my push was only missing translations in nl yml file :)
I see in https://github.com/empreinte-digitale/orejime/blob/master/src/translations/index.js
that nl is not added to the languages array

Hi, I just released version 1.2.2, this time it should be ok!