diff --git a/packages/views/locales/en/ship.json b/packages/views/locales/en/ship.json index 45ebea2872..5de37db4a5 100644 --- a/packages/views/locales/en/ship.json +++ b/packages/views/locales/en/ship.json @@ -66,6 +66,11 @@ "draft_title": "{{count}} draft", "no_prs": "No pull requests" }, + "repo_section": { + "expand": "Expand repo", + "collapse": "Collapse repo", + "empty": "No pull requests" + }, "kanban": { "drafted": "Drafted", "in_review": "In Review", diff --git a/packages/views/locales/zh-Hans/ship.json b/packages/views/locales/zh-Hans/ship.json index 4394ac76c1..a6583263bd 100644 --- a/packages/views/locales/zh-Hans/ship.json +++ b/packages/views/locales/zh-Hans/ship.json @@ -66,6 +66,11 @@ "draft_title": "{{count}} 个草稿", "no_prs": "暂无 PR" }, + "repo_section": { + "expand": "展开仓库", + "collapse": "折叠仓库", + "empty": "没有拉取请求" + }, "kanban": { "drafted": "草稿", "in_review": "审查中", diff --git a/packages/views/ship/components/ship-repo-section.tsx b/packages/views/ship/components/ship-repo-section.tsx index 33fd6f8d29..afe63847ea 100644 --- a/packages/views/ship/components/ship-repo-section.tsx +++ b/packages/views/ship/components/ship-repo-section.tsx @@ -55,7 +55,11 @@ export function ShipRepoSection({ className="flex size-5 shrink-0 items-center justify-center rounded hover:bg-muted" aria-expanded={!collapsed} aria-controls={sectionId} - aria-label={collapsed ? "Expand repo" : "Collapse repo"} + aria-label={ + collapsed + ? t(($) => $.repo_section.expand) + : t(($) => $.repo_section.collapse) + } >