diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-11-23 16:20:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-23 16:20:24 -0800 |
commit | 32bf8122e8c8a0fbadd53b8a015cfbc9014519a2 (patch) | |
tree | 55bd24596e6fadadbf4326b26e3d14e418c5c7bb /src/locale/helpers.ts | |
parent | 523d1f01a51c0e85e49916fb42b204f7004ffac1 (diff) | |
parent | b4d07c4112b9a62b5380948051aa4a7fd391a2d4 (diff) | |
download | voidsky-32bf8122e8c8a0fbadd53b8a015cfbc9014519a2.tar.zst |
Merge branch 'main' into main
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r-- | src/locale/helpers.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts index 976bcf613..c1842b820 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. @@ -133,6 +133,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage { return AppLanguage.fr case 'ga': return AppLanguage.ga + case 'gl': + return AppLanguage.gl case 'hi': return AppLanguage.hi case 'hu': @@ -147,6 +149,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage { return AppLanguage.ko case 'nl': return AppLanguage.nl + case 'pl': + return AppLanguage.pl case 'pt-BR': return AppLanguage.pt_BR case 'ru': @@ -157,6 +161,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': |