From cf7b3496a5bf4be373036304b13c058915e864c1 Mon Sep 17 00:00:00 2001 From: mzspicoli Date: Wed, 19 Aug 2026 22:29:07 +0200 Subject: [PATCH] fix(i18n): keep translation tooling portable --- scripts/translate-pt-br-stage.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/translate-pt-br-stage.mjs b/scripts/translate-pt-br-stage.mjs index 1eb4370..695c645 100644 --- a/scripts/translate-pt-br-stage.mjs +++ b/scripts/translate-pt-br-stage.mjs @@ -9,7 +9,7 @@ const root = join(dirname(fileURLToPath(import.meta.url)), '..') const sourcePath = join(root, 'scripts', 'instruction-sources', 'pt-BR.json') const glossaryPath = join(root, 'scripts', 'instruction-sources', 'GLOSSARY.md') const exercisesPath = join(root, 'frontend', 'src', 'lib', 'exercises-data.js') -const claude = '/Users/matheus/.local/bin/claude' +const claude = process.env.CLAUDE_BIN || 'claude' const option = name => process.argv.find(arg => arg.startsWith(`--${name}=`))?.split('=').slice(1).join('=') const bodyPart = option('body-part')