Verified Commit 00d026db authored by Zander Brown's avatar Zander Brown 🔲
Browse files

l10n: try really hard to match a language

parent e305d373
Pipeline #305788 passed with stage
in 11 minutes and 26 seconds
......@@ -5,6 +5,7 @@ var languages =
function lang_redirect(base, logical_url) {
let lang = navigator.languages
.map(lang => lang.replace('-', '_'))
.concat(navigator.languages.map(lang => lang.split('-')[0]))
.filter(lang => languages.includes(lang))
.shift();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment