feat: enchance prompt and code (#23633)

Co-authored-by: stream <stream@dify.ai>
Co-authored-by: Stream <1542763342@qq.com>
Co-authored-by: Stream <Stream_2@qq.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Joel 2025-08-18 12:29:12 +08:00 • committed by GitHub
commit de9c5f10b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
66 changed files with 2654 additions and 275 deletions

View file

@ -248,11 +248,18 @@ const translation = {
description: 'The Prompt Generator uses the configured model to optimize prompts for higher quality and better structure. Please write clear and detailed instructions.',
tryIt: 'Try it',
instruction: 'Instructions',
instructionPlaceHolder: 'Write clear and specific instructions.',
instructionPlaceHolderTitle: 'Describe how you would like to improve this Prompt. For example:',
instructionPlaceHolderLine1: 'Make the output more concise, retaining the core points.',
instructionPlaceHolderLine2: 'The output format is incorrect, please strictly follow the JSON format.',
instructionPlaceHolderLine3: 'The tone is too harsh, please make it more friendly.',
codeGenInstructionPlaceHolderLine: 'The more detailed the feedback, such as the data types of input and output as well as how variables are processed, the more accurate the code generation will be.',
idealOutput: 'Ideal Output',
idealOutputPlaceholder: 'Describe your ideal response format, length, tone, and content requirements...',
optional: 'Optional',
dismiss: 'Dismiss',
generate: 'Generate',
resTitle: 'Generated Prompt',
noDataLine1: 'Describe your use case on the left,',
noDataLine2: 'the orchestration preview will show here.',
newNoDataLine1: 'Write a instruction in the left column, and click Generate to see response. ',
apply: 'Apply',
loading: 'Orchestrating the application for you...',
overwriteTitle: 'Override existing configuration?',
@ -295,6 +302,14 @@ const translation = {
instruction: 'Use advanced copyediting techniques to improve your writings',
},
},
press: 'Press',
to: 'to ',
insertContext: 'insert context',
optimizePromptTooltip: 'Optimize in Prompt Generator',
optimizationNote: 'Optimization Note',
versions: 'Versions',
version: 'Version',
latest: 'Latest',
},
resetConfig: {
title: 'Confirm reset?',

View file

@ -988,6 +988,7 @@ const translation = {
chatNode: 'Conversation',
systemNode: 'System',
},
lastOutput: 'Last Output',
relations: {
dependencies: 'Dependencies',
dependents: 'Dependents',

View file

@ -240,6 +240,8 @@ const translation = {
apply: '应用',
applyChanges: '应用更改',
resTitle: '生成的代码',
newNoDataLine1: '在左侧描述您的用例,点击生成查看响应。',
newNoDataLine2: '了解提示词设计',
overwriteConfirmTitle: '是否覆盖现有代码?',
overwriteConfirmMessage: '此操作将覆盖现有代码。您确定要继续吗?',
},
@ -248,11 +250,18 @@ const translation = {
description: '提示词生成器使用配置的模型来优化提示词,以获得更高的质量和更好的结构。请写出清晰详细的说明。',
tryIt: '试一试',
instruction: '指令',
instructionPlaceHolder: '写下清晰、具体的说明。',
instructionPlaceHolderTitle: '描述您希望如何改进此提示词。例如:',
instructionPlaceHolderLine1: '使输出更简洁,保留核心要点。',
instructionPlaceHolderLine2: '输出格式不正确,请严格遵循 JSON 格式。',
instructionPlaceHolderLine3: '语气过于生硬,请使其更友好。',
codeGenInstructionPlaceHolderLine: '反馈越详细,例如输入和输出的数据类型以及变量的处理方式,代码生成就会越准确。',
idealOutput: '理想输出',
idealOutputPlaceholder: '描述您理想的回复格式、长度、语气和内容要求……',
optional: '可选',
dismiss: '取消',
generate: '生成',
resTitle: '生成的提示词',
noDataLine1: '在左侧描述您的用例,',
noDataLine2: '编排预览将在此处显示。',
newNoDataLine1: '在左侧描述您的用例,点击生成查看结果。',
apply: '应用',
loading: '为您编排应用程序中…',
overwriteTitle: '覆盖现有配置?',
@ -295,6 +304,14 @@ const translation = {
instruction: '用地道的编辑技巧改进我的文章',
},
},
press: '输入',
to: '来',
insertContext: '插入上下文',
optimizePromptTooltip: '在提示词生成器中优化',
optimizationNote: '优化说明',
versions: '版本',
version: '版本',
latest: '最新',
},
resetConfig: {
title: '确认重置?',

View file

@ -988,6 +988,7 @@ const translation = {
chatNode: '会话变量',
systemNode: '系统变量',
},
lastOutput: '上次输出',
relations: {
dependencies: '依赖',
dependents: '被依赖',