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
+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