sync from local backup

This commit is contained in:
chunyu
2026-08-05 23:59:22 +08:00
commit a59f46b894
409 changed files with 166027 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const fs = require("fs");
const path = require("path");
const base = path.resolve(__dirname, "src/locales");
let ok = true;
for (const f of ["zh.json", "en.json", "ja.json", "ko.json", "zh-TW.json", "ru.json"]) {
let s = fs.readFileSync(path.join(base, f), "utf8");
if (s.charCodeAt(0) === 0xfeff) s = s.slice(1);
try {
const o = JSON.parse(s);
console.log(f, "OK", "dateCalculator=" + (!!o.dateCalculator));
} catch (e) {
ok = false;
console.log(f, "FAIL", e.message);
}
}
process.exit(ok ? 0 : 1);