diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx index 734d894811..b3c0a62ccd 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/no-data.tsx @@ -4,6 +4,7 @@ import React from 'react' import { ClockPlay } from '@/app/components/base/icons/src/vender/line/time' import Button from '@/app/components/base/button' import { RiPlayLine } from '@remixicon/react' +import { useTranslation } from 'react-i18next' type Props = { onSingleRun: () => void @@ -12,17 +13,18 @@ type Props = { const NoData: FC = ({ onSingleRun, }) => { + const { t } = useTranslation() return (
-
The results of the last run will be displayed here
+
{t('workflow.debug.noData.description')}
) diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index b0b104559c..179dae24e1 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -910,6 +910,10 @@ const translation = { debug: { settingsTab: 'Settings', lastRunTab: 'Last Run', + noData: { + description: 'The results of the last run will be displayed here', + runThisNode: 'Run this node', + }, }, } diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 732cf76957..4406dc6253 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -911,6 +911,10 @@ const translation = { debug: { settingsTab: '设置', lastRunTab: '上次运行', + noData: { + description: '上次运行的结果将显示在这里', + runThisNode: '运行此节点', + }, }, }