Browse Source

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)
tags/v0.8.0
balibabu 1 year ago
parent
commit
59417016a8
No account linked to committer's email address

+ 1
- 0
web/src/locales/zh-traditional.ts View File

setting: '用戶設置', setting: '用戶設置',
logout: '登出', logout: '登出',
fileManager: '文件管理', fileManager: '文件管理',
flow: '圖',
}, },
knowledgeList: { knowledgeList: {
welcome: '歡迎回來', welcome: '歡迎回來',

+ 1
- 0
web/src/locales/zh.ts View File

setting: '用户设置', setting: '用户设置',
logout: '登出', logout: '登出',
fileManager: '文件管理', fileManager: '文件管理',
flow: '图',
}, },
knowledgeList: { knowledgeList: {
welcome: '欢迎回来', welcome: '欢迎回来',

+ 3
- 3
web/src/pages/flow/categorize-form/dynamic-categorize.tsx View File

import { useTranslate } from '@/hooks/commonHooks'; import { useTranslate } from '@/hooks/commonHooks';
import { CloseOutlined } from '@ant-design/icons'; 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 { useUpdateNodeInternals } from 'reactflow';
import { Operator } from '../constant'; import { Operator } from '../constant';
import { import {
}} }}
</Form.List> </Form.List>


<Form.Item noStyle shouldUpdate>
{/* <Form.Item noStyle shouldUpdate>
{() => ( {() => (
<Typography> <Typography>
<pre>{JSON.stringify(form.getFieldsValue(), null, 2)}</pre> <pre>{JSON.stringify(form.getFieldsValue(), null, 2)}</pre>
</Typography> </Typography>
)} )}
</Form.Item>
</Form.Item> */}
</> </>
); );
}; };

Loading…
Cancel
Save