web/LanguageAutoToggle: update preferred language variable name

This commit is contained in:
wukko 2024-07-12 19:02:23 +06:00
parent d27bed7add
commit b12ad56cc1
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -10,7 +10,7 @@
const updateLocale = () => { const updateLocale = () => {
if ($settings.appearance.autoLanguage) { if ($settings.appearance.autoLanguage) {
$locale = device.preferredLocale; $locale = device.prefers.language;
} else { } else {
$locale = $settings.appearance.language; $locale = $settings.appearance.language;
} }