mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 18:01:00 +00:00
Lambdas reverted
This commit is contained in:
parent
8aac74a0a6
commit
3d1a85a3a4
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