Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix: 修复中文本地化文件中占位符显示问题

wizardchenc69290fafa16
diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts
index 7bcb90550..337f3f4ed 100755
--- a/frontend/src/i18n/locales/en-US.ts
+++ b/frontend/src/i18n/locales/en-US.ts
@@ -951,7 +951,6 @@ export default {
normalModeDesc: 'Knowledge base RAG Q&A',
agentModeDesc: 'Multi-step thinking, deep analysis',
agentNotReadyTooltip: 'Agent is not ready. Please finish configuration first.',
- agentNotReadyDetail: 'Agent is not ready. Please configure the following: {reasons}',
agentMissingAllowedTools: 'Allowed tools',
agentMissingSummaryModel: 'Chat Model (Summary Model)',
agentMissingRerankModel: 'Rerank Model',
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index e1bdd2be8..f0cc90858 100755
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -818,12 +818,12 @@ export default {
systemPromptRequired: "请输入系统提示词",
modelRequired: "请选择模型",
rerankModelRequired: "使用知识库时请选择 ReRank 模型",
- contextsMissing: "开启知识库时,上下文模板必须包含 {{contexts}} 占位符",
- queryMissingInContext: "上下文模板必须包含 {{query}} 占位符",
- knowledgeBasesMissing: "建议在系统提示词中包含 {{knowledge_bases}} 占位符,以便模型了解可用的知识库",
- queryMissingInRewrite: "改写用户提示词必须包含 {{query}} 占位符",
- conversationMissing: "改写用户提示词必须包含 {{conversation}} 占位符",
- queryMissingInFallback: "兜底提示词必须包含 {{query}} 占位符",
+ contextsMissing: "开启知识库时,上下文模板必须包含 {'{{'}contexts{'}}'} 占位符",
+ queryMissingInContext: "上下文模板必须包含 {'{{'}query{'}}'} 占位符",
+ knowledgeBasesMissing: "建议在系统提示词中包含 {'{{'}knowledge_bases{'}}'} 占位符,以便模型了解可用的知识库",
+ queryMissingInRewrite: "改写用户提示词必须包含 {'{{'}query{'}}'} 占位符",
+ conversationMissing: "改写用户提示词必须包含 {'{{'}conversation{'}}'} 占位符",
+ queryMissingInFallback: "兜底提示词必须包含 {'{{'}query{'}}'} 占位符",
avatar: "图标",
avatarPlaceholder: "输入 Emoji 或点击选择",
description: "描述",
@@ -834,12 +834,12 @@ export default {
model: "模型",
modelPlaceholder: "请选择模型",
systemPrompt: "系统提示词",
- systemPromptPlaceholder: "自定义系统提示词,定义智能体的行为和角色(使用 {{web_search_status}} 占位符动态控制网络搜索行为)",
+ systemPromptPlaceholder: "自定义系统提示词,定义智能体的行为和角色(使用 {'{{'}web_search_status{'}}'} 占位符动态控制网络搜索行为)",
defaultPromptHint: "留空将使用以下系统默认提示词:",
defaultContextTemplateHint: "留空将使用以下系统默认上下文模板:",
contextTemplateRequired: "请输入上下文模板",
availablePlaceholders: "可用占位符",
- placeholderHint: "输入 {{ 触发自动补全",
+ placeholderHint: "输入 {'{{'} 触发自动补全",
temperature: "温度",
welcomeMessage: "欢迎消息",
welcomeMessagePlaceholder: "选择该智能体时显示的欢迎消息",
@@ -1786,7 +1786,7 @@ export default {
custom: "自定义 Prompt",
disabledHint: "当前使用系统默认 Prompt,开启自定义后才会应用下方内容。",
placeholder: "请输入系统 Prompt,或留空使用默认 Prompt...",
- tabHint: "统一的系统提示词,使用 {{web_search_status}} 占位符动态控制网络搜索行为",
+ tabHint: "统一的系统提示词,使用 {'{{'}web_search_status{'}}'} 占位符动态控制网络搜索行为",
},
reset: {
header: "恢复默认 Prompt",
@@ -2130,6 +2130,7 @@ export default {
},
},
promptTemplate: {
+ noTemplates: "暂无模板",
selectTemplate: "选择模板",
useTemplate: "使用模板",
withKnowledgeBase: "知识库",