balibabu
commited on
Commit
·
19737f9
1
Parent(s):
b20530c
Feat: Translate the system prompt of the generate operator #3993 (#4283)
Browse files### 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)
web/src/locales/en.ts
CHANGED
|
@@ -1096,6 +1096,7 @@ This delimiter is used to split the input text into several text pieces echo of
|
|
| 1096 |
addVariable: 'Add variable',
|
| 1097 |
variableSettings: 'Variable settings',
|
| 1098 |
globalVariables: 'Global variables',
|
|
|
|
| 1099 |
},
|
| 1100 |
footer: {
|
| 1101 |
profile: 'All rights reserved @ React',
|
|
|
|
| 1096 |
addVariable: 'Add variable',
|
| 1097 |
variableSettings: 'Variable settings',
|
| 1098 |
globalVariables: 'Global variables',
|
| 1099 |
+
systemPrompt: 'System prompt',
|
| 1100 |
},
|
| 1101 |
footer: {
|
| 1102 |
profile: 'All rights reserved @ React',
|
web/src/locales/zh-traditional.ts
CHANGED
|
@@ -1032,6 +1032,7 @@ export default {
|
|
| 1032 |
},
|
| 1033 |
addVariable: '新增變數',
|
| 1034 |
variableSettings: '變數設定',
|
|
|
|
| 1035 |
},
|
| 1036 |
footer: {
|
| 1037 |
profile: '“保留所有權利 @ react”',
|
|
|
|
| 1032 |
},
|
| 1033 |
addVariable: '新增變數',
|
| 1034 |
variableSettings: '變數設定',
|
| 1035 |
+
systemPrompt: '系統提示詞',
|
| 1036 |
},
|
| 1037 |
footer: {
|
| 1038 |
profile: '“保留所有權利 @ react”',
|
web/src/locales/zh.ts
CHANGED
|
@@ -1076,6 +1076,7 @@ export default {
|
|
| 1076 |
},
|
| 1077 |
addVariable: '新增变量',
|
| 1078 |
variableSettings: '变量设置',
|
|
|
|
| 1079 |
},
|
| 1080 |
footer: {
|
| 1081 |
profile: 'All rights reserved @ React',
|
|
|
|
| 1076 |
},
|
| 1077 |
addVariable: '新增变量',
|
| 1078 |
variableSettings: '变量设置',
|
| 1079 |
+
systemPrompt: '系统提示词',
|
| 1080 |
},
|
| 1081 |
footer: {
|
| 1082 |
profile: 'All rights reserved @ React',
|
web/src/pages/flow/form/generate-form/index.tsx
CHANGED
|
@@ -25,7 +25,7 @@ const GenerateForm = ({ onValuesChange, form, node }: IOperatorForm) => {
|
|
| 25 |
</Form.Item>
|
| 26 |
<Form.Item
|
| 27 |
name={['prompt']}
|
| 28 |
-
label=
|
| 29 |
initialValue={t('promptText')}
|
| 30 |
tooltip={t('promptTip', { keyPrefix: 'knowledgeConfiguration' })}
|
| 31 |
rules={[
|
|
|
|
| 25 |
</Form.Item>
|
| 26 |
<Form.Item
|
| 27 |
name={['prompt']}
|
| 28 |
+
label={t('systemPrompt')}
|
| 29 |
initialValue={t('promptText')}
|
| 30 |
tooltip={t('promptTip', { keyPrefix: 'knowledgeConfiguration' })}
|
| 31 |
rules={[
|