Open k2s opened 8 years ago
configuration option defaultLocale is always overridden by first language code
defaultLocale
var localeConfig = { langs: { 'en': 'English', 'sk': 'Slovak' }, defaultLocale: 'sk' }; i18n.expressBind(app, localeConfig);
value of req.i18n.defaultLocale will be set to en, it should be sk
req.i18n.defaultLocale
en
sk
actually defaultLocale option is not working. it defaults to 'en' no matter what.
I just recently encountered the same problem.
I'll look into this when I have some time
configuration option
defaultLocale
is always overridden by first language codevalue of
req.i18n.defaultLocale
will be set toen
, it should besk