Procházet zdrojové kódy

Bugfix. Restore code to get locale from browser.

JC Brand před 9 roky
rodič
revize
9fb1c2383e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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