Updated script requires.

This commit is contained in:
Mike Cao
2025-04-29 14:16:20 -07:00
parent ec7d5bdfe2
commit 615a6d444f
6 changed files with 9 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ async function run() {
await fs.ensureDir(dest);
files.forEach(file => {
const lang = require(`../src/lang/${file}`);
const lang = require(path.resolve(process.cwd() `src/lang/${file}`));
const keys = Object.keys(lang).sort();
const formatted = keys.reduce((obj, key) => {