You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In the previous version of Example-Forum/Vulcan (based on meteor 1.6), I have 2 files for the text used in my app:
i18n-en.js = english
i18n-fr.js = french
then I import these files in my index.js as below:
import './i18n-en.js';
import './i18n-fr.js';
then in my settings.json
for English, I use
"locale": "en",
for French, I use
"locale": "fr",
Using above seems not working anymore in the latest version of Example-Forum latest build + VulcanJS 1.12.8, my App doesn't show text in French even if my settings.json use "fr" (still show English).
Seeing this, I check the package vulcan-i18n-fr-fr then I see that the localization file is add on the package.js, like below:
api.addFiles([
'lib/fr_FR.js'
], ['client', 'server']);
Could you confirm that this is the new way of handling localize file in VulcanJS ?
Thank You
Adalidda
The text was updated successfully, but these errors were encountered:
Seeing this, I check the package vulcan-i18n-fr-fr then I see that the localization file is add on the package.js, like below:
'lib/fr_FR.js'
], ['client', 'server']);
This won't help, it's just importing the files in the module, which your other files are already (through a longer pipeline though)
I don't know myself how to deal with this. It seems that the language is based on the client's locale now, so basically if your browser is not set to French the language will fallback to English by default. The docs probably provide something to handle this, but I have not had time to look into that yet
Hi,
In the previous version of Example-Forum/Vulcan (based on meteor 1.6), I have 2 files for the text used in my app:
i18n-en.js = english
i18n-fr.js = french
then I import these files in my index.js as below:
import './i18n-en.js';
import './i18n-fr.js';
then in my settings.json
for English, I use
"locale": "en",
for French, I use
"locale": "fr",
Using above seems not working anymore in the latest version of Example-Forum latest build + VulcanJS 1.12.8, my App doesn't show text in French even if my settings.json use "fr" (still show English).
Seeing this, I check the package vulcan-i18n-fr-fr then I see that the localization file is add on the package.js, like below:
api.addFiles([
'lib/fr_FR.js'
], ['client', 'server']);
Could you confirm that this is the new way of handling localize file in VulcanJS ?
Thank You
Adalidda
The text was updated successfully, but these errors were encountered: