[autofix.ci] apply automated fixes
This commit is contained in:
parent
e0eb6db3ab
commit
2bb03b07cb
@ -3,6 +3,9 @@ const assert = require("node:assert");
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param dir
|
||||||
|
*/
|
||||||
function* walk(dir) {
|
function* walk(dir) {
|
||||||
const files = fs.readdirSync(dir, { withFileTypes: true });
|
const files = fs.readdirSync(dir, { withFileTypes: true });
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
@ -67,7 +70,7 @@ describe("Check Translations", () => {
|
|||||||
report += `\n = note: please register the translation key '${key}' in en.json so that our awesome team of translators can translate them`;
|
report += `\n = note: please register the translation key '${key}' in en.json so that our awesome team of translators can translate them`;
|
||||||
report += "\n = tip: if you want to contribute translations, please visit our https://weblate.kuma.pet\n";
|
report += "\n = tip: if you want to contribute translations, please visit our https://weblate.kuma.pet\n";
|
||||||
});
|
});
|
||||||
report += `\n===============================`;
|
report += "\n===============================";
|
||||||
const fileCount = new Set(missingKeys.map(item => item.filePath)).size;
|
const fileCount = new Set(missingKeys.map(item => item.filePath)).size;
|
||||||
report += `\nFound a total of ${missingKeys.length} missing keys in ${fileCount} files.`;
|
report += `\nFound a total of ${missingKeys.length} missing keys in ${fileCount} files.`;
|
||||||
assert.fail(report);
|
assert.fail(report);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user