fix(webui): localize skills view tabs

This commit is contained in:
Xubin Ren
2026-07-30 01:13:37 +08:00
parent 73d3a49a27
commit 42ee34e34d
13 changed files with 40 additions and 16 deletions
@@ -108,7 +108,7 @@ export function SkillsCatalogSettings({ skills }: { skills: SkillSummary[] }) {
aria-selected={view === item}
onClick={() => setView(item)}
className={cn(
"inline-flex items-center gap-1.5 rounded-[9px] px-3.5 py-1.5 text-[13px] font-medium transition-colors",
"inline-flex items-center rounded-[9px] px-3.5 py-1.5 text-[13px] font-medium transition-colors",
view === item
? "bg-background text-foreground shadow-sm"
: "text-muted-foreground hover:text-foreground",
@@ -116,12 +116,7 @@ export function SkillsCatalogSettings({ skills }: { skills: SkillSummary[] }) {
>
{item === "installed"
? t("settings.skills.installedTab", { defaultValue: "Installed" })
: (
<>
<VercelMark />
{t("settings.skills.discoverTab", { defaultValue: "Discover" })}
</>
)}
: t("settings.skills.discoverTab", { defaultValue: "Discover" })}
</button>
))}
</div>
@@ -228,14 +223,6 @@ export function SkillsCatalogSettings({ skills }: { skills: SkillSummary[] }) {
);
}
function VercelMark() {
return (
<svg viewBox="0 0 16 16" className="h-3 w-3" aria-hidden>
<path d="M8 1 16 15H0L8 1Z" fill="currentColor" />
</svg>
);
}
function SkillCatalogRow({
skill,
onSelect,