i18n locale can now be specified with only the language code
This commit is contained in:
parent
fddcd1c6cf
commit
48a3c30e75
@ -188,6 +188,9 @@
|
||||
moment.locale = moment.lang;
|
||||
}
|
||||
moment.locale(utils.detectLocale(this.isMomentLocale));
|
||||
if (_.includes(_.keys(locales), settings.i18n)) {
|
||||
settings.i18n = locales[settings.i18n];
|
||||
}
|
||||
this.i18n = settings.i18n ? settings.i18n : locales[utils.detectLocale(this.isConverseLocale)] || {};
|
||||
|
||||
// Translation machinery
|
||||
|
Loading…
Reference in New Issue
Block a user