Lambdas reverted

This commit is contained in:
David 2020-01-26 21:49:47 +01:00
parent 8aac74a0a6
commit 3d1a85a3a4
2 changed files with 6 additions and 2 deletions

4
ui/src/i18next.ts vendored
View File

@ -29,7 +29,9 @@ const resources = {
ca, 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({ i18next.init({
debug: false, debug: false,

View File

@ -37,7 +37,9 @@ const readmeTxt = fs.readFileSync(readmePath, { encoding: 'utf8' });
const before = readmeTxt.split(open)[0]; const before = readmeTxt.split(open)[0];
const after = readmeTxt.split(close)[1]; 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 = const report =
'lang | done | missing\n' + 'lang | done | missing\n' +