Преглед изворни кода

"en" is always accepted, because default strings are English

JC Brand пре 8 година
родитељ
комит
865789d49e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/utils.js

+ 1 - 1
src/utils.js

@@ -457,7 +457,7 @@
     }
 
     utils.getLocale = function (preferred_locale, isSupportedByLibrary) {
-        if (isSupportedByLibrary(preferred_locale)) {
+        if (preferred_locale === 'en' || isSupportedByLibrary(preferred_locale)) {
             return preferred_locale;
         }
         try {