Ver código fonte

Fix: Resolve FlowSetting not reading Title from .ts files (#6469)

### What problem does this PR solve?

Fix: Resolve FlowSetting not reading Title from .ts files

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
科幻大脑 7 meses atrás
pai
commit
b2ec39c59d
Nenhuma conta vinculada ao e-mail do autor do commit

+ 3
- 0
web/src/locales/en.ts Ver arquivo

}, },
setting: 'Setting', setting: 'Setting',
settings: { settings: {
agentSetting: 'Agent Setting',
title: 'title',
description: 'description',
upload: 'Upload', upload: 'Upload',
photo: 'Photo', photo: 'Photo',
permissions: 'Permission', permissions: 'Permission',

+ 12
- 0
web/src/locales/zh.ts Ver arquivo

categoryName: '分类名称', categoryName: '分类名称',
nextStep: '下一步', nextStep: '下一步',
insertVariableTip: `输入 / 插入变量`, insertVariableTip: `输入 / 插入变量`,
setting: '设置',
settings: {
agentSetting: 'Agent设置',
title: '标题',
description: '描述',
upload: '上传',
photo: '照片',
permissions: '权限',
permissionsTip: '你可以在这里设置团队访问权限。',
me: '仅限自己',
team: '团队',
},
}, },
footer: { footer: {
profile: 'All rights reserved @ React', profile: 'All rights reserved @ React',

+ 3
- 3
web/src/pages/flow/flow-setting/index.tsx Ver arquivo

return ( return (
<Modal <Modal
confirmLoading={loading} confirmLoading={loading}
title={'Agent Setting'}
title={t('agentSetting')}
open={visible} open={visible}
onCancel={hideModal} onCancel={hideModal}
onOk={handleSubmit} onOk={handleSubmit}
> >
<Form.Item <Form.Item
name="title" name="title"
label="Title"
label={t('title')}
rules={[{ required: true, message: 'Please input a title!' }]} rules={[{ required: true, message: 'Please input a title!' }]}
> >
<Input /> <Input />
</button> </button>
</Upload> </Upload>
</Form.Item> </Form.Item>
<Form.Item name="description" label="Description">
<Form.Item name="description" label={t('description')}>
<Input.TextArea rows={4} /> <Input.TextArea rows={4} />
</Form.Item> </Form.Item>



Carregando…
Cancelar
Salvar