From b824185a3af37d7dbfa298eb07368ef5f90de09e Mon Sep 17 00:00:00 2001 From: balibabu Date: Tue, 23 Dec 2025 15:25:38 +0800 Subject: [PATCH] Feat: Translate the text of the webhook debugging interface. #10427 (#12115) ### What problem does this PR solve? Feat: Translate the text of the webhook debugging interface. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: balibabu --- web/src/locales/en.ts | 3 +++ web/src/locales/zh.ts | 3 +++ web/src/pages/agent/webhook-sheet/index.tsx | 19 ++++++++++++++----- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index b56f68319..5318a2c5b 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -2129,6 +2129,9 @@ Important structured information may include: names, dates, locations, events, k requestBodyParameters: 'Request body parameters', immediately: 'Accepted response', streaming: 'Final response', + overview: 'Overview', + logs: 'Logs', + agentStatus: 'Agent status:', }, saveToMemory: 'Save to memory', memory: 'Memory', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index dfc72a44a..54550cea8 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -1939,6 +1939,9 @@ Tokenizer 会根据所选方式将内容存储为对应的数据结构。`, queryParameters: '查询参数', headerParameters: '请求头参数', requestBodyParameters: '请求体参数', + overview: '概述', + logs: '日志', + agentStatus: '智能体状态:', }, saveToMemory: '保存到Memory', memory: 'Memory', diff --git a/web/src/pages/agent/webhook-sheet/index.tsx b/web/src/pages/agent/webhook-sheet/index.tsx index e25bf04bc..0ee803247 100644 --- a/web/src/pages/agent/webhook-sheet/index.tsx +++ b/web/src/pages/agent/webhook-sheet/index.tsx @@ -32,7 +32,7 @@ const WebhookSheet = ({ hideModal }: RunSheetProps) => { const { data } = useFetchWebhookTrace(true); - const firstInput = data?.events.find( + const firstInput = data?.events?.find( (event) => event.event === MessageEventType.NodeFinished && event.data.component_id === BeginId, @@ -74,6 +74,7 @@ const WebhookSheet = ({ hideModal }: RunSheetProps) => {
+ {t('flow.webhook.agentStatus')}
{ className="flex-1 min-h-0 flex flex-col" > - Detail + + {t('flow.webhook.overview')} + - Tracing + {t('flow.webhook.logs')} - - + +