We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1448371 commit 0ab5ad2Copy full SHA for 0ab5ad2
assets/modules/i18n.ts
@@ -42,7 +42,9 @@ await loadLanguage("en", false); // load default language
42
const userLocale = computed(
43
() =>
44
locale.value ||
45
- [navigator.language, navigator.language.slice(0, 2)].find((l) => availableLocales.includes(l)) ||
+ [navigator.language.toLowerCase(), navigator.language.toLowerCase().slice(0, 2)].find((l) =>
46
+ availableLocales.includes(l),
47
+ ) ||
48
"en",
49
);
50
0 commit comments