hopefully fix https://github.com/vector-im/riot-web/issues/4166
This commit is contained in:
parent
c6e4f606f9
commit
946c439c28
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue