From 73b542c3881fb9016276ba9172d8ff88cde48439 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 30 Mar 2026 23:07:29 +1100 Subject: [PATCH] fix: i18n compile on windows (#8202) --- ui/desktop/scripts/i18n-compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/scripts/i18n-compile.js b/ui/desktop/scripts/i18n-compile.js index f817c059..a25c3461 100644 --- a/ui/desktop/scripts/i18n-compile.js +++ b/ui/desktop/scripts/i18n-compile.js @@ -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',