Use first language preference, not last

pull/21833/head
David Baker 2017-05-26 22:28:35 +01:00
parent db3d455a1d
commit 477396f820
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export function setLanguage(preferredLangs) {
for (let i = 0; i < preferredLangs.length; ++i) {
if (availLangs.hasOwnProperty(preferredLangs[i])) {
langToUse = preferredLangs[i];
break;
}
}
if (!langToUse) {