This commit is contained in:
MaysWind 2021-02-13 23:35:17 +08:00
parent 3d13eb13d8
commit d18dabc17a

View file

@ -102,11 +102,11 @@
}
if (!ariaNgLanguages[browserLang] && browserLang.split('-').length > 1) { // maybe language-script-region
const langParts = browserLang.split('-');
var langParts = browserLang.split('-');
browserLang = langParts[0] + '-' + langParts[1];
if (!ariaNgLanguages[browserLang]) {
const languageName = getLanguageNameFromAlias(browserLang);
var languageName = getLanguageNameFromAlias(browserLang);
if (languageName) {
browserLang = languageName;