pull/21833/head
parent
c6e4f606f9
commit
946c439c28
|
@ -191,7 +191,7 @@ export function getAllLanguagesFromJson() {
|
|||
export function getLanguagesFromBrowser() {
|
||||
if (navigator.languages && navigator.languages.length) return navigator.languages;
|
||||
if (navigator.language) return [navigator.language];
|
||||
return [navigator.userLanguage];
|
||||
return [navigator.userLanguage || "en"];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue