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:
@@ -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" />
|
||||
|
||||
@@ -2884,6 +2884,9 @@
|
||||
},
|
||||
"TerminalTabSplitMenuSection": {
|
||||
"splitTerminal": "Split terminal"
|
||||
},
|
||||
"TerminalTabLeadingIcon": {
|
||||
"7ab2964bea": "Unread agent completion"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2884,6 +2884,9 @@
|
||||
},
|
||||
"TerminalTabSplitMenuSection": {
|
||||
"splitTerminal": "Dividir terminal"
|
||||
},
|
||||
"TerminalTabLeadingIcon": {
|
||||
"7ab2964bea": "Finalización de agente sin leer"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2884,6 +2884,9 @@
|
||||
},
|
||||
"TerminalTabSplitMenuSection": {
|
||||
"splitTerminal": "ターミナルを分割"
|
||||
},
|
||||
"TerminalTabLeadingIcon": {
|
||||
"7ab2964bea": "未読のエージェント完了"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2884,6 +2884,9 @@
|
||||
},
|
||||
"TerminalTabSplitMenuSection": {
|
||||
"splitTerminal": "터미널 분할"
|
||||
},
|
||||
"TerminalTabLeadingIcon": {
|
||||
"7ab2964bea": "읽지 않은 에이전트 완료"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2884,6 +2884,9 @@
|
||||
},
|
||||
"TerminalTabSplitMenuSection": {
|
||||
"splitTerminal": "拆分终端"
|
||||
},
|
||||
"TerminalTabLeadingIcon": {
|
||||
"7ab2964bea": "未读的代理完成"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user