chore(views): remove orphaned tool_calls i18n keys, fix inline-variant JSDoc

Review follow-ups (no behavior change):
- Delete tool_calls_one/tool_calls_other from all four locales — the
  metadata chip that used them was removed earlier in this branch.
- Correct the AttributionBadge inline-variant JSDoc: it renders the bare
  name (no "on behalf of" wrapper), matching the implementation and test.
- en events_one grammar: "1 event" not "1 events".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing
2026-07-24 15:43:15 +08:00
parent 999417619a
commit 145fd3c19a
5 changed files with 5 additions and 8 deletions

View File

@@ -39,8 +39,10 @@ function initialsOf(name: string): string {
* source in a hover tooltip. Compact enough for a dense task row. Renders
* nothing when there's no accountable member — an avatar-only surface has
* nothing meaningful to show for an unattributed run.
* - `variant="inline"`: avatar + borderless "on behalf of <name>" text for a
* sentence-like identity row (transcript header). Same silence rule.
* - `variant="inline"`: the bare member name (borderless, avatar optional via
* `hideAvatar`) with the source in a tooltip — for a sentence-like identity
* row (transcript header) where the caller supplies the label. Same silence
* rule.
*
* Renders nothing when the task has no attribution at all (older backends) —
* the caller should optional-chain `task.attribution`.

View File

@@ -765,9 +765,7 @@
"status_failed": "Failed",
"filter": "Filter",
"clear_filters": "Clear filters",
"tool_calls_one": "{{count}} tool call",
"tool_calls_other": "{{count}} tool calls",
"events_one": "{{count}} events",
"events_one": "{{count}} event",
"events_other": "{{count}} events",
"events_filtered": "{{shown}} of {{total}} events",
"copy_all": "Copy all",

View File

@@ -647,7 +647,6 @@
"status_failed": "失敗",
"filter": "フィルター",
"clear_filters": "フィルターをクリア",
"tool_calls_other": "ツール呼び出し {{count}} 回",
"events_other": "イベント {{count}} 件",
"events_filtered": "イベント {{total}} 件中 {{shown}} 件",
"copy_all": "すべてコピー",

View File

@@ -655,7 +655,6 @@
"status_failed": "실패함",
"filter": "필터",
"clear_filters": "필터 지우기",
"tool_calls_other": "도구 호출 {{count}}회",
"events_other": "이벤트 {{count}}개",
"events_filtered": "이벤트 {{total}}개 중 {{shown}}개",
"copy_all": "전체 복사",

View File

@@ -751,7 +751,6 @@
"status_failed": "失败",
"filter": "筛选",
"clear_filters": "清除筛选",
"tool_calls_other": "{{count}} 次工具调用",
"events_other": "{{count}} 个事件",
"events_filtered": "{{shown}} / {{total}} 个事件",
"copy_all": "全部复制",