mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 02:19:27 +00:00
Lambdas reverted
This commit is contained in:
parent
8aac74a0a6
commit
3d1a85a3a4
4
ui/src/i18next.ts
vendored
4
ui/src/i18next.ts
vendored
|
@ -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,
|
||||||
|
|
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 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' +
|
||||||
|
|
Loading…
Reference in a new issue