support Simplified Chinese and rename original zh to Traditional Chinese

This commit is contained in:
Rwing 2017-10-17 10:54:52 +08:00
parent 5ce8f40eac
commit 362a7eaf65
6 changed files with 215 additions and 106 deletions

View file

@ -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) {