Explorar o código

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

JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
865789d49e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {