i18n-node-2
i18n-node-2 copied to clipboard
defaultLocale overridden by first language code
configuration option defaultLocale is always overridden by first language code
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
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