We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0b88b9 + 85fb99c commit 9f504d3Copy full SHA for 9f504d3
src/unit/const.js
@@ -88,6 +88,9 @@ export const getParam = param => {
88
89
export const lan = (() => {
90
let l = getParam('lan').toLowerCase()
91
+ if (!l && navigator.languages) {
92
+ l = navigator.languages.find(l => i18nJSON.lan.indexOf(l) !== -1)
93
+ }
94
l = i18nJSON.lan.indexOf(l) === -1 ? i18nJSON.default : l
95
return l
96
})()
0 commit comments