diff options
author | David <thedaviddelta@gmail.com> | 2020-01-26 21:49:47 +0100 |
---|---|---|
committer | David <thedaviddelta@gmail.com> | 2020-01-26 21:49:47 +0100 |
commit | 3d1a85a3a428f48ba65db0d24b2ec675a2783241 (patch) | |
tree | a03e8dcfda44116754ea298072fd812872973ca5 | |
parent | 8aac74a0a6d60ace66a1c5192edef3524b458372 (diff) |
Lambdas reverted
-rw-r--r-- | ui/src/i18next.ts | 4 | ||||
-rw-r--r-- | ui/translation_report.ts | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index f1288baa..51e7e3a3 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -29,7 +29,9 @@ const resources = { ca, }; -const format = (value: any, format: any, lng: any) => format === 'uppercase' ? value.toUpperCase() : value; +function format(value: any, format: any, lng: any): any { + return format === 'uppercase' ? value.toUpperCase() : value; +} i18next.init({ debug: false, diff --git a/ui/translation_report.ts b/ui/translation_report.ts index 3ac4e0b1..797a8f65 100644 --- a/ui/translation_report.ts +++ b/ui/translation_report.ts @@ -37,7 +37,9 @@ const readmeTxt = fs.readFileSync(readmePath, { encoding: 'utf8' }); const before = readmeTxt.split(open)[0]; const after = readmeTxt.split(close)[1]; -const difference = (a: Array<string>, b: Array<string>): Array<string> => a.filter(x => !b.includes(x)); +function difference(a: Array<string>, b: Array<string>): Array<string> { + return a.filter(x => !b.includes(x)); +} const report = 'lang | done | missing\n' + |