From 6c4bb674158bf282d1e8f4bc28947ac5d258cdb1 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:25:49 -0700 Subject: [PATCH] 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. --- .../src/components/tab-bar/TerminalTabLeadingIcon.tsx | 6 +++++- src/renderer/src/i18n/locales/en.json | 3 +++ src/renderer/src/i18n/locales/es.json | 3 +++ src/renderer/src/i18n/locales/ja.json | 3 +++ src/renderer/src/i18n/locales/ko.json | 3 +++ src/renderer/src/i18n/locales/zh.json | 3 +++ 6 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsx b/src/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsx index 72e8ed3f2..214247928 100644 --- a/src/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsx +++ b/src/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsx @@ -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 ( diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index a679d84b5..4fc41a011 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -2884,6 +2884,9 @@ }, "TerminalTabSplitMenuSection": { "splitTerminal": "Split terminal" + }, + "TerminalTabLeadingIcon": { + "7ab2964bea": "Unread agent completion" } } }, diff --git a/src/renderer/src/i18n/locales/es.json b/src/renderer/src/i18n/locales/es.json index 07c59f204..788d29209 100644 --- a/src/renderer/src/i18n/locales/es.json +++ b/src/renderer/src/i18n/locales/es.json @@ -2884,6 +2884,9 @@ }, "TerminalTabSplitMenuSection": { "splitTerminal": "Dividir terminal" + }, + "TerminalTabLeadingIcon": { + "7ab2964bea": "Finalización de agente sin leer" } } }, diff --git a/src/renderer/src/i18n/locales/ja.json b/src/renderer/src/i18n/locales/ja.json index 85ec2beb1..b92cf73d4 100644 --- a/src/renderer/src/i18n/locales/ja.json +++ b/src/renderer/src/i18n/locales/ja.json @@ -2884,6 +2884,9 @@ }, "TerminalTabSplitMenuSection": { "splitTerminal": "ターミナルを分割" + }, + "TerminalTabLeadingIcon": { + "7ab2964bea": "未読のエージェント完了" } } }, diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json index a9091705a..05eacf250 100644 --- a/src/renderer/src/i18n/locales/ko.json +++ b/src/renderer/src/i18n/locales/ko.json @@ -2884,6 +2884,9 @@ }, "TerminalTabSplitMenuSection": { "splitTerminal": "터미널 분할" + }, + "TerminalTabLeadingIcon": { + "7ab2964bea": "읽지 않은 에이전트 완료" } } }, diff --git a/src/renderer/src/i18n/locales/zh.json b/src/renderer/src/i18n/locales/zh.json index 1978321f9..5cc57711f 100644 --- a/src/renderer/src/i18n/locales/zh.json +++ b/src/renderer/src/i18n/locales/zh.json @@ -2884,6 +2884,9 @@ }, "TerminalTabSplitMenuSection": { "splitTerminal": "拆分终端" + }, + "TerminalTabLeadingIcon": { + "7ab2964bea": "未读的代理完成" } } },