feat: the frontend part of mcp (#22131)

Co-authored-by: jZonG <jzongcode@gmail.com>
Co-authored-by: Novice <novice12185727@gmail.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
This commit is contained in:
Joel
2025-07-10 14:14:02 +08:00
committed by GitHub
parent 535fff62f3
commit 5375d9bb27
152 changed files with 6340 additions and 695 deletions

View File

@@ -142,16 +142,92 @@ const translation = {
added: '添加',
manageInTools: '在工具中管理',
category: '類別',
emptyTitle: '沒有可用的工作流程工具',
emptyTip: '轉到“工作流 - >發佈為工具',
emptyTipCustom: '創建自訂工具',
emptyTitleCustom: '沒有可用的自訂工具',
custom: {
title: '沒有可用的自訂工具',
tip: '創建一個自訂工具',
},
workflow: {
title: '沒有可用的工作流程工具',
tip: '在 Studio 中將工作流程發佈為工具',
},
mcp: {
title: '沒有可用的 MCP 工具',
tip: '新增一個 MCP 伺服器',
},
agent: {
title: '沒有可用的代理策略',
},
},
customToolTip: '瞭解有關 Dify 自訂工具的更多資訊',
toolNameUsageTip: '用於代理推理和提示的工具調用名稱',
openInStudio: '在 Studio 中打開',
noTools: '未找到工具',
copyToolName: '複製名稱',
mcp: {
create: {
cardTitle: '新增 MCP 伺服器 (HTTP)',
cardLink: '了解更多關於 MCP 伺服器整合',
},
noConfigured: '未配置的伺服器',
updateTime: '已更新',
toolsCount: '{{count}} 個工具',
noTools: '沒有可用的工具',
modal: {
title: '新增 MCP 伺服器 (HTTP)',
editTitle: '編輯 MCP 伺服器 (HTTP)',
name: '名稱與圖示',
namePlaceholder: '為您的 MCP 伺服器命名',
serverUrl: '伺服器 URL',
serverUrlPlaceholder: '伺服器端點的 URL',
serverUrlWarning: '更新伺服器地址可能會干擾依賴於此伺服器的應用程式',
serverIdentifier: '伺服器識別碼',
serverIdentifierTip: '在工作區內 MCP 伺服器的唯一識別碼。僅限小寫字母、數字、底線和連字符。最多 24 個字元。',
serverIdentifierPlaceholder: '唯一識別碼例如my-mcp-server',
serverIdentifierWarning: '更改 ID 之後,現有應用程式將無法識別伺服器',
cancel: '取消',
save: '儲存',
confirm: '新增並授權',
},
delete: '刪除 MCP 伺服器',
deleteConfirmTitle: '您確定要刪除 {{mcp}} 嗎?',
operation: {
edit: '編輯',
remove: '移除',
},
authorize: '授權',
authorizing: '正在授權...',
authorizingRequired: '需要授權',
authorizeTip: '授權後,這裡將顯示工具。',
update: '更新',
updating: '更新中',
gettingTools: '獲取工具...',
updateTools: '更新工具...',
toolsEmpty: '工具未加載',
getTools: '獲取工具',
toolUpdateConfirmTitle: '更新工具列表',
toolUpdateConfirmContent: '更新工具列表可能會影響現有應用程式。您要繼續嗎?',
toolsNum: '{{count}} 個工具包含',
onlyTool: '包含 1 個工具',
identifier: '伺服器識別碼 (點擊複製)',
server: {
title: 'MCP 伺服器',
url: '伺服器 URL',
reGen: '您想要重新生成伺服器 URL 嗎?',
addDescription: '新增描述',
edit: '編輯描述',
modal: {
addTitle: '新增描述以啟用 MCP 伺服器',
editTitle: '編輯描述',
description: '描述',
descriptionPlaceholder: '說明此工具的用途及如何被 LLM 使用',
parameters: '參數',
parametersTip: '為每個參數添加描述,以幫助 LLM 理解其目的和約束。',
parametersPlaceholder: '參數的目的和約束',
confirm: '啟用 MCP 伺服器',
},
publishTip: '應用程式尚未發布。請先發布應用程式。',
},
},
}
export default translation