Initial import of weiyuan frontend
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/* eslint-disable */
|
||||
// Split missing_i18n.json into per-locale chunked input files for translation agents.
|
||||
// Output: scripts/missing_keys_<lng>.json (a flat array of Chinese keys to translate)
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const data = require('./missing_i18n.json');
|
||||
const OUT_DIR = __dirname;
|
||||
|
||||
for (const lng of Object.keys(data.missingByLocale)) {
|
||||
const keys = data.missingByLocale[lng];
|
||||
fs.writeFileSync(
|
||||
path.join(OUT_DIR, `missing_keys_${lng}.json`),
|
||||
JSON.stringify(keys, null, 2),
|
||||
'utf8'
|
||||
);
|
||||
console.log(`Wrote missing_keys_${lng}.json (${keys.length} keys)`);
|
||||
}
|
||||
Reference in New Issue
Block a user