From 3d1a85a3a428f48ba65db0d24b2ec675a2783241 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 26 Jan 2020 21:49:47 +0100 Subject: Lambdas reverted --- ui/src/i18next.ts | 4 +++- 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, b: Array): Array => a.filter(x => !b.includes(x)); +function difference(a: Array, b: Array): Array { + return a.filter(x => !b.includes(x)); +} const report = 'lang | done | missing\n' + -- cgit v1.2.3