修复: CR-08 P1-1 useAiEvents拒绝提示走i18n(原硬编码中文致en locale恒中文,废已有rejectedHint翻译)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user