fix: give the common-skill buttons their own label and tagline
The seven selector buttons were rendering `kind` and `use`, which belong to the detail panel. ponytail's button read "SIMPLIFICATION INSTINCT" and a full paragraph of prose where today's page reads "SIMPLIFY" and "minimum code that holds". English was wrong, not just Portuguese missing, on all seven. Those two lines are not in `interactiveCopy`, which is why task 05b had nothing to migrate them from: the English lives in the `full-guide/index.html` markup and the Portuguese in `translations.pt`. Adds `label` and `tagline` to the `commonSkills` schema and to all seven entries, both taken verbatim from those two sources, and points the buttons at them. The panel keeps reading `kind` and `use`. This closes the last 13 of the 102 `translations.pt` entries. Coverage in `dist/full-guide/index.html` is now 102 of 102. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -874,17 +874,19 @@ const base = import.meta.env.BASE_URL;
|
||||
aria-selected={skill.id === 'ponytail'}
|
||||
>
|
||||
<>
|
||||
{/* The button's two lines are `label` / `tagline`, not the
|
||||
panel's `kind` / `use`. See src/content/config.ts. */}
|
||||
<span>
|
||||
<span data-language-content="en">{skill.kind.en}</span>
|
||||
<span data-language-content="en">{skill.label.en}</span>
|
||||
<span data-language-content="pt" hidden>
|
||||
{skill.kind.pt}
|
||||
{skill.label.pt}
|
||||
</span>
|
||||
</span>
|
||||
<strong>{skill.title}</strong>
|
||||
<small>
|
||||
<span data-language-content="en">{skill.use.en}</span>
|
||||
<span data-language-content="en">{skill.tagline.en}</span>
|
||||
<span data-language-content="pt" hidden>
|
||||
{skill.use.pt}
|
||||
{skill.tagline.pt}
|
||||
</span>
|
||||
</small>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user