mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-22 17:31:19 +00:00
unbreak translations
This commit is contained in:
1 parent
ba8beadb2e
commit
73373b3fcd
1 file changed
+2
-1
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user