mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
Fix PHANPY_DEFAULT_LANG not working
It needs to be used before navigator.language
This commit is contained in:
parent
96e4a3dc7a
commit
b286511f44
1 changed files with 1 additions and 1 deletions
|
@ -46,8 +46,8 @@ export function initActivateLang() {
|
||||||
const lang = detect(
|
const lang = detect(
|
||||||
fromUrl('lang'),
|
fromUrl('lang'),
|
||||||
fromStorage('lang'),
|
fromStorage('lang'),
|
||||||
fromNavigator(),
|
|
||||||
PHANPY_DEFAULT_LANG,
|
PHANPY_DEFAULT_LANG,
|
||||||
|
fromNavigator(),
|
||||||
DEFAULT_LANG,
|
DEFAULT_LANG,
|
||||||
);
|
);
|
||||||
const matchedLang = localeMatch(lang, LOCALES);
|
const matchedLang = localeMatch(lang, LOCALES);
|
||||||
|
|
Loading…
Reference in a new issue