Skip to content
Snippets Groups Projects
Unverified Commit 8245e772 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-status-page: fix browser compatiblity of language selection

parent 959c8ae7
Branches
Tags
No related merge requests found
......@@ -139,10 +139,12 @@ define([ "bacon" ], function (Bacon) {
"Branch": "Ветка"
}
}
if (navigator.userLanguage)
langs = [ navigator.userLanguage ]
if (navigator.languages)
langs = navigator.languages
else if (navigator.language)
langs = [navigator.language]
else
langs = navigator.languages
langs = []
for (i=0; i<langs.length; i++) {
lang = langs[i].split('-')[0]
if (lang == "en")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment