LanguageAutoToggle: change language even if it does not exist

if the locfile does not exist, it will just fall back to english
This commit is contained in:
dumbmoron 2024-07-10 18:46:43 +00:00
parent 4759f2037c
commit aea7ebb371
No known key found for this signature in database

View file

@ -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;
}