about summary refs log tree commit diff
path: root/src/locale/helpers.ts
diff options
context:
space:
mode:
authorFrudrax Cheng <i@cynosura.one>2024-02-06 06:50:10 +0800
committerGitHub <noreply@github.com>2024-02-05 14:50:10 -0800
commita5cd1d377f00dc5e6c83657c02445e987d985f7f (patch)
tree1bba9eb4c445dffab36c22627cbc39367c561299 /src/locale/helpers.ts
parent0b37cf4ee7f113348a3845e20a0ef77617f51d93 (diff)
downloadvoidsky-a5cd1d377f00dc5e6c83657c02445e987d985f7f.tar.zst
Chinese localization (#2668)
* Chinese localization

* fixed languages.ts typo

* crosscheck with proofreading of translation

* fixed messages.po string styles

* a minor adjustment

* Update Chinese localization

* fixed a typo & modify the translation of handle

* based on the latest messages.po translation

* removed unused strings

* based on the latest messages.po translation
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r--src/locale/helpers.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts
index 08953ff2d..c345e8a82 100644
--- a/src/locale/helpers.ts
+++ b/src/locale/helpers.ts
@@ -138,6 +138,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
         return AppLanguage.uk
       case 'ca':
         return AppLanguage.ca
+      case 'zh-CN':
+        return AppLanguage.zh_CN
       default:
         continue
     }