Fix PHANPY_DEFAULT_LANG not working

It needs to be used before navigator.language
pull/642/head
Lim Chee Aun 2024-08-19 10:19:52 +08:00
rodzic 96e4a3dc7a
commit b286511f44
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);