summaryrefslogtreecommitdiff
path: root/public/js/locale.js
diff options
context:
space:
mode:
authorRwing2017-10-17 10:54:52 +0800
committerRwing2017-10-23 17:38:04 +0800
commit362a7eaf65d902a93890f3510a58a092de3ac467 (patch)
treebb605cb464a530dfad08eae6e271672ea7bc4876 /public/js/locale.js
parent5ce8f40eac7fccfcfca175cf79ccfa86a84bc113 (diff)
support Simplified Chinese and rename original zh to Traditional Chinese
Diffstat (limited to 'public/js/locale.js')
-rw-r--r--public/js/locale.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/locale.js b/public/js/locale.js
index 2a2c1814..71c0f99f 100644
--- a/public/js/locale.js
+++ b/public/js/locale.js
@@ -11,6 +11,9 @@ $('.ui-locale option').each(function () {
})
if (Cookies.get('locale')) {
lang = Cookies.get('locale')
+ if (lang === 'zh') {
+ lang = 'zh-TW'
+ }
} else if (supportLangs.indexOf(userLang) !== -1) {
lang = supportLangs[supportLangs.indexOf(userLang)]
} else if (supportLangs.indexOf(userLangCode) !== -1) {