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 47b0ce2 commit 68c97dfCopy full SHA for 68c97df
src/components/i18n.js
@@ -38,14 +38,15 @@ export const dictionary = new Map([
38
])
39
40
export function getText (text) {
41
- for (let language of navigator.languages) {
42
- for (let [langReg, textMapping] of dictionary) {
+ for (const language of navigator.languages) {
+ for (const [langReg, textMapping] of dictionary) {
43
if (langReg.test(language)) {
44
- let result, match = null
+ let result
45
+ let match = null
46
if (textMapping.has(text)) {
47
result = textMapping.get(text)
48
} else {
- for (let [re, res] of textMapping) {
49
+ for (const [re, res] of textMapping) {
50
if (_.isRegExp(re)) {
51
match = re.exec(text)
52
if (match !== null) {
0 commit comments