i18n: handling 404
This commit is contained in:
parent
190d760024
commit
91012ededf
@ -119,6 +119,13 @@ class JsI18n {
|
||||
console.error("Language not found");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (locale != "fr") {
|
||||
console.warn(`Locale not found: ${locale}, fallback to french`);
|
||||
this.setLocale("fr");
|
||||
} else {
|
||||
console.error("Language not found");
|
||||
}
|
||||
}
|
||||
});
|
||||
this.locale = locale;
|
||||
|
Loading…
Reference in New Issue
Block a user