mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00
### What problem does this PR solve? feat: translate graph list #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
98295caffe
commit
1eb1f7ad33
@ -581,6 +581,8 @@ The above is the content you need to summarize.`,
|
|||||||
promptText: `Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:
|
promptText: `Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:
|
||||||
{input}
|
{input}
|
||||||
The above is the content you need to summarize.`,
|
The above is the content you need to summarize.`,
|
||||||
|
create: 'Create graph',
|
||||||
|
createFromTemplates: 'Create from templates',
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
profile: 'All rights reserved @ React',
|
profile: 'All rights reserved @ React',
|
||||||
|
@ -541,6 +541,8 @@ export default {
|
|||||||
promptText: `請總結以下段落。注意數字,不要胡編亂造。段落如下:
|
promptText: `請總結以下段落。注意數字,不要胡編亂造。段落如下:
|
||||||
{input}
|
{input}
|
||||||
以上就是你需要總結的內容。`,
|
以上就是你需要總結的內容。`,
|
||||||
|
createGraph: '建立圖表',
|
||||||
|
createFromTemplates: '從模板創建',
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
profile: '“保留所有權利 @ react”',
|
profile: '“保留所有權利 @ react”',
|
||||||
|
@ -560,6 +560,8 @@ export default {
|
|||||||
promptText: `请总结以下段落。注意数字,不要胡编乱造。段落如下:
|
promptText: `请总结以下段落。注意数字,不要胡编乱造。段落如下:
|
||||||
{input}
|
{input}
|
||||||
以上就是你需要总结的内容。`,
|
以上就是你需要总结的内容。`,
|
||||||
|
createGraph: '创建图表',
|
||||||
|
createFromTemplates: '从模板创建',
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
profile: 'All rights reserved @ React',
|
profile: 'All rights reserved @ React',
|
||||||
|
@ -70,7 +70,7 @@ const CreateFlowModal = ({
|
|||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
<Title level={5}>Create from templates</Title>
|
<Title level={5}>{t('createFromTemplates', { keyPrefix: 'flow' })}</Title>
|
||||||
<Flex vertical gap={16} className={styles.templatesBox}>
|
<Flex vertical gap={16} className={styles.templatesBox}>
|
||||||
{list?.map((x) => (
|
{list?.map((x) => (
|
||||||
<Card
|
<Card
|
||||||
|
@ -4,6 +4,7 @@ import CreateFlowModal from './create-flow-modal';
|
|||||||
import FlowCard from './flow-card';
|
import FlowCard from './flow-card';
|
||||||
import { useFetchDataOnMount, useSaveFlow } from './hooks';
|
import { useFetchDataOnMount, useSaveFlow } from './hooks';
|
||||||
|
|
||||||
|
import { useTranslate } from '@/hooks/commonHooks';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
|
|
||||||
const FlowList = () => {
|
const FlowList = () => {
|
||||||
@ -14,6 +15,7 @@ const FlowList = () => {
|
|||||||
flowSettingLoading,
|
flowSettingLoading,
|
||||||
onFlowOk,
|
onFlowOk,
|
||||||
} = useSaveFlow();
|
} = useSaveFlow();
|
||||||
|
const { t } = useTranslate('flow');
|
||||||
|
|
||||||
const { list, loading } = useFetchDataOnMount();
|
const { list, loading } = useFetchDataOnMount();
|
||||||
|
|
||||||
@ -25,7 +27,7 @@ const FlowList = () => {
|
|||||||
icon={<PlusOutlined />}
|
icon={<PlusOutlined />}
|
||||||
onClick={showFlowSettingModal}
|
onClick={showFlowSettingModal}
|
||||||
>
|
>
|
||||||
create canvas
|
{t('create')}
|
||||||
</Button>
|
</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Spin spinning={loading}>
|
<Spin spinning={loading}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user