소스 검색

"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 {