From aea7ebb37104d0f4ea2368e87196db6fbd0a5948 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Wed, 10 Jul 2024 18:46:43 +0000 Subject: [PATCH] LanguageAutoToggle: change language even if it does not exist if the locfile does not exist, it will just fall back to english --- web/src/components/settings/LanguageAutoToggle.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/components/settings/LanguageAutoToggle.svelte b/web/src/components/settings/LanguageAutoToggle.svelte index 8be7a95f..c992feca 100644 --- a/web/src/components/settings/LanguageAutoToggle.svelte +++ b/web/src/components/settings/LanguageAutoToggle.svelte @@ -10,9 +10,7 @@ const updateLocale = () => { if ($settings.appearance.autoLanguage) { - if ($locales.includes(device.preferredLocale)) { - $locale = device.preferredLocale; - } + $locale = device.preferredLocale; } else { $locale = $settings.appearance.language; }