mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 01:05:34 +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(
|
||||
fromUrl('lang'),
|
||||
fromStorage('lang'),
|
||||
fromNavigator(),
|
||||
PHANPY_DEFAULT_LANG,
|
||||
fromNavigator(),
|
||||
DEFAULT_LANG,
|
||||
);
|
||||
const matchedLang = localeMatch(lang, LOCALES);
|
||||
|
|
Loading…
Reference in a new issue