[common] fixed lang loading

This commit is contained in:
Maxim Kadushkin 2021-11-13 13:55:56 +03:00
parent f0d3467545
commit 13943632cb

View file

@ -127,7 +127,7 @@ Common.Locale = new(function() {
l10n = json || {};
apply && _applyLocalization();
}).catch(function(e) {
if ( currentLang != defLang ) {
if ( currentLang != defLang && defLang && defLang.length < 3 ) {
return setTimeout(function(){
_requireLang(defLang)
}, 0);