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:
parent
e4630d1a84
commit
a76ef9c168
@ -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: '中文 (简体)',
|
||||
},
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user