Use user's system language by default.

This commit is contained in:
FireMasterK
2021-09-23 23:57:26 +01:00
committed by Kavin
parent 4e4ecd1fba
commit 58e69da0c2
3 changed files with 15 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ export default {
const App = this;
(async function() {
const locale = App.getPreferenceString("hl", "en");
const locale = App.getPreferenceString("hl", App.defaultLangage);
if (window.i18n.global.locale.value !== locale) {
if (!window.i18n.global.availableLocales.includes(locale)) {
const messages = await import("@/locales/" + locale + ".json").then(module => module.default);