mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
Fix zh-TW detection
The value navigator.* gets is something like 'zh-TW' instead of 'zh-tw'.
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@
|
||||
if (lang === 'ja') lang = 'jp';
|
||||
else if (lang === 'pt') lang = 'pt_BR';
|
||||
else if (lang === 'ug') lang = 'ug_CN';
|
||||
else if (lang === 'zh') lang = (fullLang.substr(0,5) === 'zh-tw')? 'zh_TW' : 'zh_CN';
|
||||
else if (lang === 'zh') lang = (fullLang.substr(0,5) === 'zh-TW')? 'zh_TW' : 'zh_CN';
|
||||
return lang;
|
||||
})(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user