From a9fb306e464e940337e1eab4bcd7765b2c4afb7b Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 24 Aug 2023 11:37:23 +0200 Subject: [PATCH] fix(i18n): fall back to browser language if the configured user language is invalid --- src/i18n/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 628d524a6..a258374fa 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -47,8 +47,13 @@ export async function setLanguage(lang: SupportedLocale): Promise