fix(rules): show GATILHO in Portuguese, and diff the PT half too
verify-and-publish / gate (push) Successful in 29m29s
verify-and-publish / publish (push) Has been skipped

The skill detail panel's label read TRIGGER in both languages. The copy
data carries the Portuguese in `skillTriggerLabelPt`, but the island asks
for `skillTriggerLabel`, which is "TRIGGER" under both locales -- so the
translated value was never reachable. Legacy renders it inline:
`language === 'pt' ? 'GATILHO' : 'TRIGGER'`.

Fixed by putting the Portuguese where the lookup goes, `pt.skillTriggerLabel`,
and dropping the unreachable `skillTriggerLabelPt` from both locales. Nothing
else reads that key.

rendered-text-diff.mjs grows a `--pt` flag and now reports both directions.
English parity was hiding this: a page can paint every English string and
still leave a block untranslated, because the Portuguese half is a separate
set of nodes, and a string the Astro page renders but the legacy page does
not is equally wrong -- it means a translation was invented or an English
string was left where the legacy page swaps it.

/rules/ is now 119 of 119 in both languages, zero either way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Marcos Paulo
2026-09-06 00:09:28 +00:00
parent a97c2a4034
commit 6974800d2e
2 changed files with 25 additions and 6 deletions
+1 -3
View File
@@ -56,7 +56,6 @@
"skillReadSkill": "READ SKILL ↗",
"skillReadSkillPt": "LER SKILL ↗",
"skillTriggerLabel": "TRIGGER",
"skillTriggerLabelPt": "GATILHO",
"copyStatus": "Prompt copied.",
"copyStatusPt": "Prompt copiado.",
"copyFallback": "Select the text manually.",
@@ -118,8 +117,7 @@
"stageOpenSourcePt": "ABRIR FONTE ↗",
"skillReadSkill": "LER SKILL ↗",
"skillReadSkillPt": "LER SKILL ↗",
"skillTriggerLabel": "TRIGGER",
"skillTriggerLabelPt": "GATILHO",
"skillTriggerLabel": "GATILHO",
"copyStatus": "Prompt copied.",
"copyStatusPt": "Prompt copiado.",
"copyFallback": "Select the text manually.",