mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
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