-
1. Re: Errai 2.4.3 I18N demo does not appear to be working
jfuerth Feb 18, 2014 10:14 AM (in response to tmcclure0501)Hi Tim,
When the i18n features got added to Errai, we observed that in two multilingual jurisdictions (Switzerland and Canada) the rules are that each site/webapp must include its own language switching controls and use those in preference to browser or OS locale settings. So the approach we're recommending at this point is to include a LocaleListBox in your app: this widget lists all available translations and lets the user switch between them.
If you do want to try to detect the browser/OS locale setting, you could do this in an EntryPoint class of your app and then call TranslationService.setCurrentLocale() with the locale you've discovered.
Of course, remember you will have to refresh the whole web page every time you change your OS or browser locale setting.
-Jonathan