feat(15d): complete localization of full-guide page to PT

This commit is contained in:
Marcos Paulo
2026-09-05 22:30:50 +00:00
parent c022a93302
commit 054393f7af
38 changed files with 1322 additions and 325 deletions
+52 -4
View File
@@ -21,16 +21,64 @@ interface Route {
interface Props {
routes: Route[];
initial?: string;
headWork?: string | Localized;
headProfile?: string | Localized;
headPromptShape?: string | Localized;
}
const { routes, initial = routes[0]?.id ?? 'plan' } = Astro.props;
const {
routes,
initial = routes[0]?.id ?? 'plan',
headWork = 'Work',
headProfile = 'Profile',
headPromptShape = 'Prompt shape',
} = Astro.props;
---
<div class="route-table">
<div class="head">
<span>Work</span>
<span>Profile</span>
<span>Prompt shape</span>
<span>
{
typeof headWork === 'string' ? (
headWork
) : (
<>
<span data-language-content="en">{headWork.en}</span>
<span data-language-content="pt" hidden>
{headWork.pt}
</span>
</>
)
}
</span>
<span>
{
typeof headProfile === 'string' ? (
headProfile
) : (
<>
<span data-language-content="en">{headProfile.en}</span>
<span data-language-content="pt" hidden>
{headProfile.pt}
</span>
</>
)
}
</span>
<span>
{
typeof headPromptShape === 'string' ? (
headPromptShape
) : (
<>
<span data-language-content="en">{headPromptShape.en}</span>
<span data-language-content="pt" hidden>
{headPromptShape.pt}
</span>
</>
)
}
</span>
</div>
{
routes.map((route) => (
+16 -2
View File
@@ -20,13 +20,27 @@ interface PackageFile {
interface Props {
files: PackageFile[];
initial?: string;
packageLabel?: string | Localized;
}
const { files, initial = files[0]?.id ?? 'skill' } = Astro.props;
const { files, initial = files[0]?.id ?? 'skill', packageLabel = 'SKILL PACKAGE' } = Astro.props;
---
<div class="skill-package" role="tree" aria-label="Skill package files">
<span class="skill-package-label">SKILL PACKAGE</span>
<span class="skill-package-label">
{
typeof packageLabel === 'string' ? (
packageLabel
) : (
<>
<span data-language-content="en">{packageLabel.en}</span>
<span data-language-content="pt" hidden>
{packageLabel.pt}
</span>
</>
)
}
</span>
{
files.map((file) => (
<button
+33 -2
View File
@@ -24,9 +24,11 @@ interface Branch {
interface Props {
branches: Branch[];
initial?: string;
rootLabel?: string | Localized;
rootSmall?: string | Localized;
}
const { branches, initial = 'main' } = Astro.props;
const { branches, initial = 'main', rootLabel = 'ROOT', rootSmall = '● clean' } = Astro.props;
---
<div class="tree-stage" role="tree" aria-label="Repository worktree topology">
@@ -41,8 +43,37 @@ const { branches, initial = 'main' } = Astro.props;
data-tree="main"
role="treeitem"
aria-selected={initial === 'main'}
><span>ROOT</span><strong>main</strong><small> clean</small></button
>
<span>
{
typeof rootLabel === 'string' ? (
rootLabel
) : (
<>
<span data-language-content="en">{rootLabel.en}</span>
<span data-language-content="pt" hidden>
{rootLabel.pt}
</span>
</>
)
}
</span>
<strong>main</strong>
<small>
{
typeof rootSmall === 'string' ? (
rootSmall
) : (
<>
<span data-language-content="en">{rootSmall.en}</span>
<span data-language-content="pt" hidden>
{rootSmall.pt}
</span>
</>
)
}
</small>
</button>
{
branches.map((branch) => (
<button