aboutsummaryrefslogtreecommitdiff
path: root/client-web/source
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source')
-rw-r--r--client-web/source/locale/mod.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client-web/source/locale/mod.ts b/client-web/source/locale/mod.ts
index bcaf067..18f845f 100644
--- a/client-web/source/locale/mod.ts
+++ b/client-web/source/locale/mod.ts
@@ -6,11 +6,14 @@ export let PO: LanguageStrings;
export function init_locale(lang: string) {
if (lang == "system") lang = navigator.language
+ if (!LOCALES[lang]) lang = "en-US"
PO = LOCALES[lang]
}
export const LOCALES: { [key: string]: LanguageStrings } = {
+ "en": PO_EN_US,
"en-US": PO_EN_US,
+ "de": PO_DE_DE,
"de-DE": PO_DE_DE,
}