From 059d487cb69d8e27e179253b23c9736aaf255124 Mon Sep 17 00:00:00 2001 From: Valentin Date: Tue, 26 Aug 2025 13:17:51 +0000 Subject: [PATCH] resolve path to translate script and execute the script directly --- libs/native-federation/src/utils/i18n.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/native-federation/src/utils/i18n.ts b/libs/native-federation/src/utils/i18n.ts index 4af901b..630f674 100644 --- a/libs/native-federation/src/utils/i18n.ts +++ b/libs/native-federation/src/utils/i18n.ts @@ -76,7 +76,9 @@ export async function translateFederationArtefacts( const sourceLocalePath = path.join(outputPath, 'browser', sourceLocale); - const cmd = `node node_modules/.bin/localize-translate -r ${sourceLocalePath} -s "${sourcePattern}" -t ${translationFiles} -o ${translationOutPath} --target-locales ${targetLocales} -l ${sourceLocale}`; + const localizeTranslate = path.resolve("node_modules/.bin/localize-translate"); + + const cmd = `${localizeTranslate} -r ${sourceLocalePath} -s "${sourcePattern}" -t ${translationFiles} -o ${translationOutPath} --target-locales ${targetLocales} -l ${sourceLocale}`; ensureDistFolders(locales, outputPath); copyRemoteEntry(locales, outputPath, sourceLocalePath);