about summary refs log tree commit diff
path: root/src/locale/helpers.ts
diff options
context:
space:
mode:
authorQuang Phan <vnphanquang@gmail.com>2024-11-24 06:50:32 +0700
committerGitHub <noreply@github.com>2024-11-23 15:50:32 -0800
commit796d04b59fc629a5cbbdf5270f0ccc7dff48b484 (patch)
tree658872a5c8ed69a88a9207740a5d7c7c37695854 /src/locale/helpers.ts
parent9bf7e278e74676c6f6e2ce972dfa207b5d0c422f (diff)
downloadvoidsky-796d04b59fc629a5cbbdf5270f0ccc7dff48b484.tar.zst
Vietnamese Localization (Continued from #2524) (#6564)
* Add Vietnamese localization

* Complete Vietnamese Translations

* Add date localization for Vietnamese

* Fix typos and wording in Vietnamese translation

* Update Vietnamese translation

* Add @vinhphm to Vietnamese translator list

---------

Co-authored-by: CromNguyen <nguyenthietmanh98@gmail.com>
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r--src/locale/helpers.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts
index 72cf52fcc..c7fa27f89 100644
--- a/src/locale/helpers.ts
+++ b/src/locale/helpers.ts
@@ -101,7 +101,7 @@ export function getTranslatorLink(text: string, lang: string): string {
 /**
  * Returns a valid `appLanguage` value from an arbitrary string.
  *
- * Contenxt: post-refactor, we populated some user's `appLanguage` setting with
+ * Context: post-refactor, we populated some user's `appLanguage` setting with
  * `postLanguage`, which can be a comma-separated list of values. This breaks
  * `appLanguage` handling in the app, so we introduced this util to parse out a
  * valid `appLanguage` from the pre-populated `postLanguage` values.
@@ -157,6 +157,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
         return AppLanguage.tr
       case 'uk':
         return AppLanguage.uk
+      case 'vi':
+        return AppLanguage.vi
       case 'zh-CN':
         return AppLanguage.zh_CN
       case 'zh-HK':