Merge pull request #591 from Rwing/master

support Simplified Chinese and rename original zh to Traditional Chinese
This commit is contained in:
Sheogorath 2017-10-23 11:53:31 +02:00 committed by GitHub
commit c794412714
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) {