Use first language preference, not last
parent
db3d455a1d
commit
477396f820
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue