1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-23 18:34:02 +02:00

Fix Chinese lang code (#4415)

zh-cn is for Simplified Chinese, and zh-tw is for Traditional Chinese.
And remove invalid zh-tx code.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
zhsj 2023-06-02 00:37:43 +08:00 committed by GitHub
parent e4630d1a84
commit a76ef9c168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -111,12 +111,12 @@ class Constants {
displayName: 'Pусский',
},
{
code: 'zh-cn',
name: 'chinese',
code: 'zh-tw',
name: 'traditional-chinese',
displayName: '中文 (繁體)',
},
{
code: 'zh-tw',
code: 'zh-cn',
name: 'simplified-chinese',
displayName: '中文 (简体)',
},

View File

@ -54,11 +54,9 @@ export function getMessages(lang: string): {[key: string]: string} {
case 'tr':
return messages_tr
case 'zh-cn':
return messages_zhHant
case 'zh-tx':
return messages_zhHans
case 'zh-tw':
return messages_zhHans
return messages_zhHant
}
return messages_en
}