From 26f66bb1bcde2b1e97b82688d563c66b7367f7b6 Mon Sep 17 00:00:00 2001 From: bill Date: Mon, 30 Dec 2024 10:48:13 +0800 Subject: [PATCH] Feat: Translate the system prompt of the generate operator #3993 --- web/src/locales/en.ts | 1 + web/src/locales/zh-traditional.ts | 1 + web/src/locales/zh.ts | 1 + web/src/pages/flow/form/generate-form/index.tsx | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 99624e74320..edf012a4906 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -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', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index f47e102f2b9..75665e4504c 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -1032,6 +1032,7 @@ export default { }, addVariable: '新增變數', variableSettings: '變數設定', + systemPrompt: '系統提示詞', }, footer: { profile: '“保留所有權利 @ react”', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 2d12f43dab1..f3506bab862 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -1076,6 +1076,7 @@ export default { }, addVariable: '新增变量', variableSettings: '变量设置', + systemPrompt: '系统提示词', }, footer: { profile: 'All rights reserved @ React', diff --git a/web/src/pages/flow/form/generate-form/index.tsx b/web/src/pages/flow/form/generate-form/index.tsx index 500d42fbd0e..ad6396d9e20 100644 --- a/web/src/pages/flow/form/generate-form/index.tsx +++ b/web/src/pages/flow/form/generate-form/index.tsx @@ -25,7 +25,7 @@ const GenerateForm = ({ onValuesChange, form, node }: IOperatorForm) => {