fix(i18n): localize the terminal tab unread-completion aria-label (#8663)

The unread-activity bell landed with a hardcoded aria-label, and the
localization-coverage gate now fails on main itself (verify does not run
on pushes to main, so the break landed silently and blocks every PR's
CI). Route it through translate() with catalog entries for all five
locales.
This commit is contained in:
Brennan Benson
2026-07-13 21:25:49 -07:00
committed by GitHub
parent 9875b5528a
commit 6c4bb67415
6 changed files with 20 additions and 1 deletions
@@ -5,6 +5,7 @@ import type { TerminalTab, TuiAgent } from '../../../../shared/types'
import { FilledBellIcon } from '../sidebar/WorktreeCardHelpers'
import { ShellIcon } from './shell-icons'
import type { TerminalTabActivityStatus } from './terminal-tab-activity-status'
import { translate } from '@/i18n/i18n'
type TerminalTabLeadingIconProps = {
agent: TuiAgent | null
@@ -70,7 +71,10 @@ export function TerminalTabLeadingIcon({
return (
<span
data-testid="tab-activity-bell"
aria-label="Unread agent completion"
aria-label={translate(
'auto.components.tab.bar.TerminalTabLeadingIcon.7ab2964bea',
'Unread agent completion'
)}
className="mr-1 inline-flex shrink-0 items-center gap-1"
>
<FilledBellIcon className="size-3 text-amber-500 drop-shadow-sm" />
+3
View File
@@ -2884,6 +2884,9 @@
},
"TerminalTabSplitMenuSection": {
"splitTerminal": "Split terminal"
},
"TerminalTabLeadingIcon": {
"7ab2964bea": "Unread agent completion"
}
}
},
+3
View File
@@ -2884,6 +2884,9 @@
},
"TerminalTabSplitMenuSection": {
"splitTerminal": "Dividir terminal"
},
"TerminalTabLeadingIcon": {
"7ab2964bea": "Finalización de agente sin leer"
}
}
},
+3
View File
@@ -2884,6 +2884,9 @@
},
"TerminalTabSplitMenuSection": {
"splitTerminal": "ターミナルを分割"
},
"TerminalTabLeadingIcon": {
"7ab2964bea": "未読のエージェント完了"
}
}
},
+3
View File
@@ -2884,6 +2884,9 @@
},
"TerminalTabSplitMenuSection": {
"splitTerminal": "터미널 분할"
},
"TerminalTabLeadingIcon": {
"7ab2964bea": "읽지 않은 에이전트 완료"
}
}
},
+3
View File
@@ -2884,6 +2884,9 @@
},
"TerminalTabSplitMenuSection": {
"splitTerminal": "拆分终端"
},
"TerminalTabLeadingIcon": {
"7ab2964bea": "未读的代理完成"
}
}
},