mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
support Simplified Chinese and rename original zh to Traditional Chinese
This commit is contained in:
parent
5ce8f40eac
commit
362a7eaf65
6 changed files with 215 additions and 106 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue