diff --git a/src/components/chat-view/CustomModeView.tsx b/src/components/chat-view/CustomModeView.tsx index 6f078ec..5f2a3dd 100644 --- a/src/components/chat-view/CustomModeView.tsx +++ b/src/components/chat-view/CustomModeView.tsx @@ -215,7 +215,7 @@ const CustomModeView = () => { {/* Mode name */}
Built-in mode names cannot be modified
+{t('prompt.builtinModeNameWarning')}
) : (- Mode names must only contain letters, numbers, and hyphens + {t('prompt.modeNameRequirements')}
) } @@ -241,7 +241,7 @@ const CustomModeView = () => { setModeName(e.target.value) }} className="infio-custom-modes-input" - placeholder="Enter mode name..." + placeholder={t('prompt.modeNamePlaceholder')} disabled={isBuiltinMode} />Set professional domain and response style
+{t('prompt.roleDefinitionDescription')}
Available features of built-in modes cannot be modified
+{t('prompt.builtinFeaturesWarning')}
) }Mode-specific rules
+{t('prompt.modeSpecificRulesDescription')}
- You can completely replace the system prompt for this mode (excluding role definition and custom instructions) by creating a file + {t('prompt.overrideDescription')} openOrCreateMarkdownFile(app, `_infio_prompts/${modeName}/system_prompt.md`, 0)}>_infio_prompts/{modeName}/system_prompt - . This is a very advanced feature that will override all built-in prompts including tool usage, please use with caution
> )} @@ -414,7 +414,7 @@ const CustomModeView = () => { } }} > - Save + {t('prompt.save')} diff --git a/src/lang/locale/en.ts b/src/lang/locale/en.ts index ab0c438..fe9a3c9 100644 --- a/src/lang/locale/en.ts +++ b/src/lang/locale/en.ts @@ -1,6 +1,3 @@ -// import { APPNAME, MINEXCALIDRAWVERSION } from "src/constants/constants"; - -//Magyar export default { prompt: { "title": "Prompts", @@ -8,5 +5,25 @@ export default { "modeName": "Mode Name", "modeNameDescription": "Mode Description", "modeNamePlaceholder": "Enter mode name...", + "builtinModeNameWarning": "Built-in mode names cannot be modified", + "modeNameRequirements": "Mode names must only contain letters, numbers, and hyphens", + "roleDefinition": "Role Definition", + "roleDefinitionDescription": "Set professional domain and response style", + "roleDefinitionPlaceholder": "Enter role definition...", + "availableFeatures": "Available Features", + "builtinFeaturesWarning": "Available features of built-in modes cannot be modified", + "readFiles": "Read Files", + "editFiles": "Edit Files", + "webSearch": "Web Search", + "modeSpecificRules": "Mode-Specific Rules (Optional)", + "modeSpecificRulesDescription": "Mode-specific rules", + "modeSpecificRulesPlaceholder": "Enter mode custom instructions...", + "supportReadingConfig": "Support reading configuration from", + "file": "file", + "overrideSystemPrompt": "Override System Prompt", + "overrideDescription": "You can completely replace the system prompt for this mode (excluding role definition and custom instructions) by creating a file", + "overrideWarning": ". This is a very advanced feature that will override all built-in prompts including tool usage, please use with caution", + "previewSystemPrompt": "Preview System Prompt", + "save": "Save" } } diff --git a/src/lang/locale/zh-cn.ts b/src/lang/locale/zh-cn.ts index 2d2b0a1..75c3b41 100644 --- a/src/lang/locale/zh-cn.ts +++ b/src/lang/locale/zh-cn.ts @@ -4,5 +4,29 @@ export default { prompt: { "title": "模型提示词设置", + "description": "点击 + 创建新模式", + "modeName": "模式名称", + "modeNameDescription": "模式描述", + "modeNamePlaceholder": "请输入模式名称...", + "builtinModeNameWarning": "内置模式名称无法修改", + "modeNameRequirements": "模式名称只能包含字母、数字和连字符", + "roleDefinition": "角色定义", + "roleDefinitionDescription": "设置专业领域和回复风格", + "roleDefinitionPlaceholder": "请输入角色定义...", + "availableFeatures": "可用功能", + "builtinFeaturesWarning": "内置模式的可用功能不能修改", + "readFiles": "读取文件", + "editFiles": "编辑文件", + "webSearch": "网络搜索", + "modeSpecificRules": "模式特定规则(可选)", + "modeSpecificRulesDescription": "模式特定规则", + "modeSpecificRulesPlaceholder": "请输入模式自定义指令...", + "supportReadingConfig": "支持从以下位置读取配置", + "file": "文件", + "overrideSystemPrompt": "覆盖系统提示", + "overrideDescription": "您可以通过创建文件来完全替换此模式的系统提示(不包括角色定义和自定义指令)", + "overrideWarning": "。这是一个非常高级的功能,将覆盖所有内置提示,包括工具使用,请谨慎使用", + "previewSystemPrompt": "预览系统提示", + "save": "保存" } };