From e160438a902114ba9336a91e256409c63da5e2aa Mon Sep 17 00:00:00 2001 From: David Date: Sun, 26 Jan 2020 21:49:47 +0100 Subject: [PATCH] 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 f1288ba..51e7e3a 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 3ac4e0b..797a8f6 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' +