feat(i18n): complete Brazilian Portuguese instructions

This commit is contained in:
mzspicoli committed 2026-08-24 18:02:11 +02:00
1 parent cf7b3496a5
commit 3d3e44c973
11 files changed
+9110 -45

No files matched your search

+13 -7
View File
@@ -10,9 +10,9 @@ The translations are produced from the English instructions in
`frontend/src/lib/exercises-data.js` with language-model assistance from OpenAI
Codex and, for larger structured batches, Anthropic Claude Code. They are
original translations, not copied from another Portuguese exercise dataset.
Each batch is checked against the English source and reviewed for Brazilian
terminology, but it must not be described as native-speaker reviewed until a
named human reviewer has actually completed that review.
Each batch is structurally checked against the English source and audited for
Brazilian terminology. It must not be described as native-speaker reviewed
until a named human reviewer has actually completed that review.
The translation policy is meaning-faithful rather than word-for-word: preserve
the number and order of steps, retain the intended movement and safety cues,
@@ -32,12 +32,18 @@ steps left unchanged in English. The frontend test also verifies that the
generated `frontend/src/instr/pt-BR.js` exactly matches this source.
Do not add `pt-BR` to `INSTR_LANGS` until all 1,324 exercise IDs are translated
and reviewed. Until then, the released app must continue to show the honest
English-instructions notice instead of silently mixing Portuguese and English.
and the full automated corpus gates pass. Until then, the released app must
continue to show the honest English-instructions notice instead of silently
mixing Portuguese and English.
Use the terminology in `GLOSSARY.md` for every batch.
For a structured batch, use `scripts/translate-pt-br-stage.mjs` with a dataset
body part and limit. It calls Claude in read-only structured-output mode and
writes only after every returned ID and step count validates. The normal pack
builder and frontend tests remain mandatory after generation.
checkpoints only after every returned ID and step count in that batch validates,
so a long stage can resume safely. The normal pack builder and frontend tests
remain mandatory after generation.
Use `--provider=codex` to run the same schema-constrained workflow through an
authenticated Codex CLI when Claude is unavailable. Both providers run without
write tools; only this validator updates the curated JSON after a valid batch.