unbreak translations

This commit is contained in:
MathMan05 committed 2026-01-14 19:03:33 -06:00
1 parent ba8beadb2e
commit 73373b3fcd
1 file changed
+2 -1
+2 -1
View File
@@ -114,7 +114,8 @@ class I18n {
return [...langmap.keys()].map((e) => e.replace(".json", ""));
}
static setLanguage(lang: string) {
if (this.options().indexOf(userLocale) !== -1) {
debugger;
if (this.options().indexOf(lang) !== -1) {
getPreferences().then(async (prefs) => {
prefs.locale = lang;
await I18n.create(lang);