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