feat(15d): complete localization of full-guide page to PT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user