From c349c8d6aaf1577fbfc5a4716c85dae5c7752c61 Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 8 Jul 2024 18:52:13 +0800 Subject: [PATCH] feat: translate graph of header #918 (#1428) ### What problem does this PR solve? feat: translate graph of header #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/locales/zh-traditional.ts | 1 + web/src/locales/zh.ts | 1 + web/src/pages/flow/categorize-form/dynamic-categorize.tsx | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index e1c33b46715..2180a3efe78 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -57,6 +57,7 @@ export default { setting: '用戶設置', logout: '登出', fileManager: '文件管理', + flow: '圖', }, knowledgeList: { welcome: '歡迎回來', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 1c411d9dab4..cc26dcb2763 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -57,6 +57,7 @@ export default { setting: '用户设置', logout: '登出', fileManager: '文件管理', + flow: '图', }, knowledgeList: { welcome: '欢迎回来', diff --git a/web/src/pages/flow/categorize-form/dynamic-categorize.tsx b/web/src/pages/flow/categorize-form/dynamic-categorize.tsx index 84eb94250c1..c8fc4d32496 100644 --- a/web/src/pages/flow/categorize-form/dynamic-categorize.tsx +++ b/web/src/pages/flow/categorize-form/dynamic-categorize.tsx @@ -1,6 +1,6 @@ import { useTranslate } from '@/hooks/commonHooks'; import { CloseOutlined } from '@ant-design/icons'; -import { Button, Card, Form, Input, Select, Typography } from 'antd'; +import { Button, Card, Form, Input, Select } from 'antd'; import { useUpdateNodeInternals } from 'reactflow'; import { Operator } from '../constant'; import { @@ -95,13 +95,13 @@ const DynamicCategorize = ({ nodeId }: IProps) => { }} - + {/* {() => (
{JSON.stringify(form.getFieldsValue(), null, 2)}
)} -
+
*/} ); };