diff --git a/src/client/i18n.ts b/src/client/i18n.ts index 68181d7..67a44d7 100644 --- a/src/client/i18n.ts +++ b/src/client/i18n.ts @@ -398,7 +398,7 @@ export const DICT_ZH: Record = { 'ov.list.search': '搜索标题 / 目录 / 最后消息…', 'ov.list.sortLabel': '排序', 'ov.list.sort.recent': '最近更新', - 'ov.list.sort.tokens': '团队用量', + 'ov.list.sort.tokens': 'Token 总用量', 'ov.list.sort.context': '当前 Context', 'ov.list.empty': '还没有会话 — 发起一轮对话后,这里会列出每个会话的上下文画像', 'ov.list.noMatch': '没有匹配当前筛选条件的会话', @@ -414,8 +414,8 @@ export const DICT_ZH: Record = { 'ov.running': '运行中', 'ov.current': '当前', 'ov.card.turns': '{n} 轮 {s} 步', - 'ov.card.teamUsage': '团队用量', - 'ov.card.teamCost': '团队费用', + 'ov.card.teamUsage': 'Token 总用量', + 'ov.card.teamCost': '总预估费用', 'ov.card.lastUser': '最后消息', 'ov.time.now': '刚刚', 'ov.time.m': '{n} 分钟前', @@ -814,7 +814,7 @@ export const DICT_EN: Record = { 'ov.list.search': 'Search title / path / last message…', 'ov.list.sortLabel': 'Sort', 'ov.list.sort.recent': 'Last updated', - 'ov.list.sort.tokens': 'Team Usage', + 'ov.list.sort.tokens': 'Total Tokens', 'ov.list.sort.context': 'Current Context', 'ov.list.empty': 'No sessions yet — each session’s context profile appears here once you start one', 'ov.list.noMatch': 'No sessions match the current filters', @@ -830,8 +830,8 @@ export const DICT_EN: Record = { 'ov.running': 'Running', 'ov.current': 'current', 'ov.card.turns': '{n} turns · {s} steps', - 'ov.card.teamUsage': 'Team Usage', - 'ov.card.teamCost': 'Team Cost', + 'ov.card.teamUsage': 'Total Tokens', + 'ov.card.teamCost': 'Total Est. Cost', 'ov.card.lastUser': 'Last message', 'ov.time.now': 'just now', 'ov.time.m': '{n}m ago', diff --git a/tests/client/components/overviewCard.spec.ts b/tests/client/components/overviewCard.spec.ts index ad74205..1bb612e 100644 --- a/tests/client/components/overviewCard.spec.ts +++ b/tests/client/components/overviewCard.spec.ts @@ -52,7 +52,7 @@ describe('OverviewCard', () => { // The three mini stats: turns+steps lead, then the team's billed, then its cost. const labels = queryAll(m.container, '.lc-ov-mini-label').map(el => el.textContent) const values = queryAll(m.container, '.lc-ov-mini-value').map(el => el.textContent) - assert.deepEqual(labels, ['Turns', 'Team Usage', 'Team Cost']) + assert.deepEqual(labels, ['Turns', 'Total Tokens', 'Total Est. Cost']) assert.deepEqual(values, ['9 turns · 12 steps', '1.8k', '$0.02']) await m.unmount() }) @@ -174,7 +174,7 @@ describe('OverviewCard', () => { const ZhCard = makeOverviewCard(makeKit('zh')) const m = await mount(h(ZhCard, { row: rowOf({ timeline: TIMELINE }), costLabel: '¥0.13', now: NOW, onOpen: () => {} })) const labels = queryAll(m.container, '.lc-ov-mini-label').map(el => el.textContent) - assert.deepEqual(labels, ['轮次', '团队用量', '团队费用']) + assert.deepEqual(labels, ['轮次', 'Token 总用量', '总预估费用']) const values = queryAll(m.container, '.lc-ov-mini-value').map(el => el.textContent) assert.equal(values[0], '9 轮 12 步') assert.equal(query(m.container, '.lc-ov-session-time').textContent, '3 小时前')