forked from nutomic/lemmy
Lambdas reverted
This commit is contained in:
parent
88b798bb6b
commit
e160438a90
2 changed files with 6 additions and 2 deletions
4
ui/src/i18next.ts
vendored
4
ui/src/i18next.ts
vendored
|
@ -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,
|
||||
|
|
4
ui/translation_report.ts
vendored
4
ui/translation_report.ts
vendored
|
@ -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' +
|
||||
|
|
Loading…
Reference in a new issue