[all] fix bug 53971

This commit is contained in:
Maxim Kadushkin 2021-11-22 16:02:19 +03:00
parent 540a415826
commit 126eaf08e7

View file

@ -99,6 +99,7 @@ Common.Locale = new(function() {
};
var _requireLang = function (l) {
typeof l != 'string' && (l = null);
var lang = (l || _getUrlParameterByName('lang') || defLang).split(/[\-_]/)[0];
currentLang = lang;
fetch('locale/' + lang + '.json')