mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 20:15:58 +08:00
add i18n for MCP server card & modal
This commit is contained in:
parent
bbd0dbf29b
commit
7df1ccf1f6
@ -12,7 +12,6 @@ import Switch from '@/app/components/base/switch'
|
|||||||
import Divider from '@/app/components/base/divider'
|
import Divider from '@/app/components/base/divider'
|
||||||
import CopyFeedback from '@/app/components/base/copy-feedback'
|
import CopyFeedback from '@/app/components/base/copy-feedback'
|
||||||
import Confirm from '@/app/components/base/confirm'
|
import Confirm from '@/app/components/base/confirm'
|
||||||
import ShareQRCode from '@/app/components/base/qrcode'
|
|
||||||
import type { AppDetailResponse } from '@/models/app'
|
import type { AppDetailResponse } from '@/models/app'
|
||||||
import { useAppContext } from '@/context/app-context'
|
import { useAppContext } from '@/context/app-context'
|
||||||
import type { AppSSO } from '@/types/app'
|
import type { AppSSO } from '@/types/app'
|
||||||
@ -88,7 +87,6 @@ function MCPServiceCard({
|
|||||||
content={appUrl}
|
content={appUrl}
|
||||||
className={'!size-6'}
|
className={'!size-6'}
|
||||||
/>
|
/>
|
||||||
<ShareQRCode content={appUrl} />
|
|
||||||
<Divider type="vertical" className="!mx-0.5 !h-3.5 shrink-0" />
|
<Divider type="vertical" className="!mx-0.5 !h-3.5 shrink-0" />
|
||||||
{/* button copy link/ button regenerate */}
|
{/* button copy link/ button regenerate */}
|
||||||
{showConfirmDelete && (
|
{showConfirmDelete && (
|
||||||
|
@ -190,6 +190,21 @@ const translation = {
|
|||||||
getTools: 'Get tools',
|
getTools: 'Get tools',
|
||||||
toolsNum: '{{count}} tools included',
|
toolsNum: '{{count}} tools included',
|
||||||
onlyTool: '1 tool included',
|
onlyTool: '1 tool included',
|
||||||
|
server: {
|
||||||
|
title: 'MCP Server',
|
||||||
|
url: 'Server URL',
|
||||||
|
addDescription: 'Add description',
|
||||||
|
edit: 'Edit description',
|
||||||
|
modal: {
|
||||||
|
addTitle: 'Add description to enable MCP server',
|
||||||
|
editTitle: 'Edit description',
|
||||||
|
descriptionPlaceholder: 'Explain what this tool does and how it should be used by the LLM',
|
||||||
|
parameters: 'Parameters',
|
||||||
|
parametersTip: 'Add descriptions for each parameter to help the LLM understand their purpose and constraints.',
|
||||||
|
parametersPlaceholder: 'Parameter purpose and constraints',
|
||||||
|
confirm: 'Enable MCP Server',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,6 +190,21 @@ const translation = {
|
|||||||
getTools: '获取工具',
|
getTools: '获取工具',
|
||||||
toolsNum: '包含 {{count}} 个工具',
|
toolsNum: '包含 {{count}} 个工具',
|
||||||
onlyTool: '包含 1 个工具',
|
onlyTool: '包含 1 个工具',
|
||||||
|
server: {
|
||||||
|
title: 'MCP 服务',
|
||||||
|
url: '服务端点 URL',
|
||||||
|
addDescription: '添加描述',
|
||||||
|
edit: '编辑描述',
|
||||||
|
modal: {
|
||||||
|
addTitle: '添加描述以启用 MCP 服务',
|
||||||
|
editTitle: '编辑 MCP 服务描述',
|
||||||
|
descriptionPlaceholder: '解释此工具的功能以及 LLM 应如何使用它',
|
||||||
|
parameters: '参数',
|
||||||
|
parametersTip: '为每个参数添加描述,以帮助 LLM 理解其目的和约束条件。',
|
||||||
|
parametersPlaceholder: '参数的用途和约束条件',
|
||||||
|
confirm: '启用 MCP 服务',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user