This commit is contained in:
Matthew Hodgson 2017-09-21 18:56:34 +01:00
parent c6e4f606f9
commit 946c439c28

View file

@ -191,7 +191,7 @@ export function getAllLanguagesFromJson() {
export function getLanguagesFromBrowser() { export function getLanguagesFromBrowser() {
if (navigator.languages && navigator.languages.length) return navigator.languages; if (navigator.languages && navigator.languages.length) return navigator.languages;
if (navigator.language) return [navigator.language]; if (navigator.language) return [navigator.language];
return [navigator.userLanguage]; return [navigator.userLanguage || "en"];
} }
/** /**