From dcd8b9359ad74b10598b8624731ee95d22b29dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Mon, 15 Jun 2026 12:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20CR-08=20P1-1=20useAiEvent?= =?UTF-8?q?s=E6=8B=92=E7=BB=9D=E6=8F=90=E7=A4=BA=E8=B5=B0i18n(=E5=8E=9F?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E4=B8=AD=E6=96=87=E8=87=B4en=20loca?= =?UTF-8?q?le=E6=81=92=E4=B8=AD=E6=96=87,=E5=BA=9F=E5=B7=B2=E6=9C=89reject?= =?UTF-8?q?edHint=E7=BF=BB=E8=AF=91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/ai/useAiEvents.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/composables/ai/useAiEvents.ts b/src/composables/ai/useAiEvents.ts index 88abe9c..a7ecd8b 100644 --- a/src/composables/ai/useAiEvents.ts +++ b/src/composables/ai/useAiEvents.ts @@ -178,8 +178,9 @@ export function handleEvent(event: AiChatEvent) { const tc = findToolCall(event.id) if (tc) { tc.status = 'rejected' - // 与后端落库一致:拒绝结果回填卡片,供 UI 展示拒绝原因 - tc.result = '用户拒绝了此操作' + // CR-260615-08(P1-1):走 i18n —— 原硬编码中文使 en locale 拒绝提示恒中文, + // 且废掉已存在的 aiTool.rejectedHint(en: 'User rejected this action')翻译 + tc.result = t('aiTool.rejectedHint') } state.pendingApprovals = state.pendingApprovals.filter(p => p.id !== event.id) }