Browse Source

Bugfix. Restore code to get locale from browser.

JC Brand 9 years ago
parent
commit
9fb1c2383e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/converse-core.js

+ 1 - 1
src/converse-core.js

@@ -309,10 +309,10 @@
             moment.locale = moment.lang;
         }
         moment.locale(this.detectLocale(this.isMomentLocale));
+        this.i18n = settings.i18n ? settings.i18n : locales[this.detectLocale(this.isConverseLocale)];
 
         // Translation machinery
         // ---------------------
-        this.i18n = settings.i18n ? settings.i18n : locales.en;
         var __ = utils.__.bind(this);
 
         // Default configuration values