Files
monkey-ai-web/scripts/i18n_langs.cjs

16 lines
585 B
JavaScript

/* eslint-disable */
// i18n_kt_*.cjs 共用的目标语种解析:
// node scripts/i18n_kt_batches.cjs --langs=ja,vi
// I18N_LANGS=ja,vi node scripts/i18n_kt_build.cjs
// 不传时保持历史行为(ko,th)。同一轮 batches → 回填 → build 必须用同一组语种,
// 因为 kt_batches/ 按这组语种的「任一未译」切批。
const arg = process.argv.find((a) => a.startsWith('--langs='));
const raw = arg
? arg.slice('--langs='.length)
: process.env.I18N_LANGS || 'ko,th';
module.exports = raw
.split(',')
.map((s) => s.trim())
.filter(Boolean);