fix: i18n compile on windows (#8202)

This commit is contained in:
Lifei Zhou
2026-03-30 23:07:29 +11:00
committed by GitHub
parent 0469af7f3b
commit 73b542c388
+1 -1
View File
@@ -18,7 +18,7 @@ const files = fs.readdirSync(messagesDir).filter((f) => f.endsWith('.json'));
for (const file of files) {
const locale = path.basename(file, '.json');
const inFile = path.join(messagesDir, file);
const inFile = path.join(messagesDir, file).split(path.sep).join('/');
const outFile = path.join(compiledDir, `${locale}.json`);
execFileSync(process.execPath, [formatjs, 'compile', inFile, '--out-file', outFile], {
stdio: 'inherit',