Commit e923fbf2 authored by JC Brand's avatar JC Brand

Set i18n to empty obj in cases where there's no locales

This lets variable interpolation still work (if Jed is loaded)
parent 22041b3d
*~
*.mo
*.kpf
*.swp
.*.sw?
.*.cfg
.hg/
.bzr/
......
......@@ -237,7 +237,7 @@
moment.locale = moment.lang;
}
moment.locale(this.detectLocale(this.isMomentLocale));
this.i18n = settings.i18n ? settings.i18n : locales[this.detectLocale(this.isConverseLocale)];
this.i18n = settings.i18n ? settings.i18n : locales[this.detectLocale(this.isConverseLocale)] || {};
// Translation machinery
// ---------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment