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.
1 parent f0b88b9 commit 85fb99cCopy full SHA for 85fb99c
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