Update Chinese & Cantonese localization (#7235)

* Update translates from crowdin

* Convert language codes from RFC-1766 to RFC-4646

* Update translates from crowdin

* Update deviceLocales.ts

* Revert 'changes zh-HK to yue'

* Fix zh-HK messages.po

* Revert 'en/messages.po'

* Update deviceLocales.ts

* Revert code comments

* Update translates from crowdin

* zh-TW: Improved translations
This commit is contained in:
Frudrax Cheng
2025-01-01 03:34:48 +08:00
committed by GitHub
parent 444c4a944e
commit cf1ccdf8e3
7 changed files with 575 additions and 608 deletions
+3 -3
View File
@@ -173,11 +173,11 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
return AppLanguage.uk
case 'vi':
return AppLanguage.vi
case 'zh-CN':
case 'zh-Hans-CN':
return AppLanguage.zh_CN
case 'zh-HK':
case 'zh-Hant-HK':
return AppLanguage.zh_HK
case 'zh-TW':
case 'zh-Hant-TW':
return AppLanguage.zh_TW
default:
continue