about summary refs log tree commit diff
path: root/src/locale/helpers.ts
diff options
context:
space:
mode:
authorFrudrax Cheng <i@cynosura.one>2025-01-01 03:34:48 +0800
committerGitHub <noreply@github.com>2024-12-31 11:34:48 -0800
commitcf1ccdf8e3ca235447756701eb88e2655c0cdf98 (patch)
treea6252e8bd8dcc092709807f86ea4fc0b3a07463c /src/locale/helpers.ts
parent444c4a944e87200f9f470f14a37f63a97c63425e (diff)
downloadvoidsky-cf1ccdf8e3ca235447756701eb88e2655c0cdf98.tar.zst
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
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r--src/locale/helpers.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts
index 9c57268fd..a0d36421a 100644
--- a/src/locale/helpers.ts
+++ b/src/locale/helpers.ts
@@ -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