[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-01-05 23:14:05 +00:00 committed by GitHub
parent e0eb6db3ab
commit 2bb03b07cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,9 @@ const assert = require("node:assert");
const fs = require("fs");
const path = require("path");
/**
* @param dir
*/
function* walk(dir) {
const files = fs.readdirSync(dir, { withFileTypes: true });
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 = 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;
report += `\nFound a total of ${missingKeys.length} missing keys in ${fileCount} files.`;
assert.fail(report);