mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-24 02:22:08 +02:00
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:
parent
4759f2037c
commit
aea7ebb371
@ -10,9 +10,7 @@
|
|||||||
|
|
||||||
const updateLocale = () => {
|
const updateLocale = () => {
|
||||||
if ($settings.appearance.autoLanguage) {
|
if ($settings.appearance.autoLanguage) {
|
||||||
if ($locales.includes(device.preferredLocale)) {
|
|
||||||
$locale = device.preferredLocale;
|
$locale = device.preferredLocale;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$locale = $settings.appearance.language;
|
$locale = $settings.appearance.language;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user