From: David Date: Sun, 26 Jan 2020 20:49:47 +0000 (+0100) Subject: Lambdas reverted X-Git-Url: http://these/git/readmes/static/%7B%60/css/themes/%7BimageUploadUrl%7D?a=commitdiff_plain;h=3d1a85a3a428f48ba65db0d24b2ec675a2783241;p=lemmy.git Lambdas reverted --- 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' +