Selaa lähdekoodia

Feat: Translate the system prompt of the generate operator #3993 (#4283)

### What problem does this PR solve?

 Feat: Translate the system prompt of the generate operator #3993

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/nightly
balibabu 10 kuukautta sitten
vanhempi
commit
713b837276
No account linked to committer's email address

+ 1
- 0
web/src/locales/en.ts Näytä tiedosto

@@ -1096,6 +1096,7 @@ This delimiter is used to split the input text into several text pieces echo of
addVariable: 'Add variable',
variableSettings: 'Variable settings',
globalVariables: 'Global variables',
systemPrompt: 'System prompt',
},
footer: {
profile: 'All rights reserved @ React',

+ 1
- 0
web/src/locales/zh-traditional.ts Näytä tiedosto

@@ -1032,6 +1032,7 @@ export default {
},
addVariable: '新增變數',
variableSettings: '變數設定',
systemPrompt: '系統提示詞',
},
footer: {
profile: '“保留所有權利 @ react”',

+ 1
- 0
web/src/locales/zh.ts Näytä tiedosto

@@ -1076,6 +1076,7 @@ export default {
},
addVariable: '新增变量',
variableSettings: '变量设置',
systemPrompt: '系统提示词',
},
footer: {
profile: 'All rights reserved @ React',

+ 1
- 1
web/src/pages/flow/form/generate-form/index.tsx Näytä tiedosto

@@ -25,7 +25,7 @@ const GenerateForm = ({ onValuesChange, form, node }: IOperatorForm) => {
</Form.Item>
<Form.Item
name={['prompt']}
label="System"
label={t('systemPrompt')}
initialValue={t('promptText')}
tooltip={t('promptTip', { keyPrefix: 'knowledgeConfiguration' })}
rules={[

Loading…
Peruuta
Tallenna