Matthew Hodgson 2017-09-21 18:56:34 +01:00
parent c6e4f606f9
commit 946c439c28
1 changed files with 1 additions and 1 deletions

View File

@ -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"];
}
/**