You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin.ts 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. const translation = {
  2. metadata: {
  3. title: '插件',
  4. },
  5. category: {
  6. all: '全部',
  7. models: '模型',
  8. tools: '工具',
  9. agents: 'Agent 策略',
  10. extensions: '扩展',
  11. bundles: '插件集',
  12. },
  13. categorySingle: {
  14. model: '模型',
  15. tool: '工具',
  16. agent: 'Agent 策略',
  17. extension: '扩展',
  18. bundle: '插件集',
  19. },
  20. search: '搜索',
  21. allCategories: '所有类别',
  22. searchCategories: '搜索类别',
  23. searchPlugins: '搜索插件',
  24. from: '来自',
  25. findMoreInMarketplace: '在 Marketplace 中查找更多',
  26. searchInMarketplace: '在 Marketplace 中搜索',
  27. fromMarketplace: '来自市场',
  28. endpointsEnabled: '{{num}} 组端点已启用',
  29. searchTools: '搜索工具...',
  30. installPlugin: '安装插件',
  31. installFrom: '安装源',
  32. deprecated: '已弃用',
  33. list: {
  34. noInstalled: '无已安装的插件',
  35. notFound: '未找到插件',
  36. source: {
  37. marketplace: '从 Marketplace 安装',
  38. github: '从 GitHub 安装',
  39. local: '本地插件',
  40. },
  41. },
  42. source: {
  43. marketplace: 'Marketplace',
  44. github: 'GitHub',
  45. local: '本地插件',
  46. },
  47. detailPanel: {
  48. switchVersion: '切换版本',
  49. categoryTip: {
  50. marketplace: '从 Marketplace 安装',
  51. github: '从 Github 安装',
  52. local: '本地插件',
  53. debugging: '调试插件',
  54. },
  55. operation: {
  56. install: '安装',
  57. detail: '详情',
  58. update: '更新',
  59. info: '插件信息',
  60. checkUpdate: '检查更新',
  61. viewDetail: '查看详情',
  62. remove: '移除',
  63. },
  64. actionNum: '包含 {{num}} 个 {{action}}',
  65. strategyNum: '包含 {{num}} 个 {{strategy}}',
  66. endpoints: 'API 端点',
  67. endpointsTip: '此插件通过 API 端点提供特定功能,您可以为当前工作区配置多个 API 端点集。',
  68. endpointsDocLink: '查看文档',
  69. endpointsEmpty: '点击 \'+\' 按钮添加 API 端点',
  70. endpointDisableTip: '停用 API 端点',
  71. endpointDisableContent: '是否要停用 {{name}} 的 API 端点?',
  72. endpointDeleteTip: '移除 API 端点',
  73. endpointDeleteContent: '是否要移除 {{name}} ?',
  74. endpointModalTitle: '设置 API 端点',
  75. endpointModalDesc: '完成配置后可使用插件 API 端点提供的功能',
  76. serviceOk: '服务正常',
  77. disabled: '停用',
  78. modelNum: '{{num}} 模型已包含',
  79. toolSelector: {
  80. title: '添加工具',
  81. toolSetting: '工具设置',
  82. toolLabel: '工具',
  83. descriptionLabel: '工具描述',
  84. descriptionPlaceholder: '简要描述工具目的,例如,获取特定位置的温度。',
  85. placeholder: '选择工具',
  86. settings: '用户设置',
  87. params: '推理配置',
  88. paramsTip1: '控制 LLM 推理参数。',
  89. paramsTip2: '当“自动”关闭时,使用默认值。',
  90. auto: '自动',
  91. empty: '点击 "+" 按钮添加工具。您可以添加多个工具。',
  92. uninstalledTitle: '工具未安装',
  93. uninstalledContent: '此插件安装自 本地 / GitHub 仓库,请安装后使用。',
  94. uninstalledLink: '在插件中管理',
  95. unsupportedTitle: '不支持的 Action',
  96. unsupportedContent: '已安装的插件版本不提供这个 action。',
  97. unsupportedContent2: '点击切换版本',
  98. unsupportedMCPTool: '当前选定的 Agent 策略插件版本不支持 MCP 工具。',
  99. },
  100. configureApp: '应用设置',
  101. configureModel: '模型设置',
  102. configureTool: '工具设置',
  103. deprecation: {
  104. fullMessage: '由于{{deprecatedReason}},此插件已被弃用,将不再发布新版本。请使用<CustomLink href=\'https://example.com/\'>{{-alternativePluginId}}</CustomLink>替代。',
  105. onlyReason: '由于{{deprecatedReason}},此插件已被弃用,将不再发布新版本。',
  106. noReason: '此插件已被弃用,将不再发布新版本。',
  107. reason: {
  108. businessAdjustments: '业务调整',
  109. ownershipTransferred: '所有权转移',
  110. noMaintainer: '无人维护',
  111. },
  112. },
  113. },
  114. install: '{{num}} 次安装',
  115. installAction: '安装',
  116. debugInfo: {
  117. title: '调试',
  118. viewDocs: '查看文档',
  119. },
  120. privilege: {
  121. title: '插件偏好',
  122. whoCanInstall: '谁可以安装和管理插件?',
  123. whoCanDebug: '谁可以调试插件?',
  124. everyone: '所有人',
  125. admins: '管理员',
  126. noone: '无人',
  127. },
  128. pluginInfoModal: {
  129. title: '插件信息',
  130. repository: '仓库',
  131. release: '发布版本',
  132. packageName: '包',
  133. },
  134. action: {
  135. checkForUpdates: '检查更新',
  136. pluginInfo: '插件信息',
  137. delete: '移除插件',
  138. deleteContentLeft: '是否要移除 ',
  139. deleteContentRight: ' 插件?',
  140. usedInApps: '此插件正在 {{num}} 个应用中使用。',
  141. },
  142. installModal: {
  143. installPlugin: '安装插件',
  144. installComplete: '安装完成',
  145. installedSuccessfully: '安装成功',
  146. installedSuccessfullyDesc: '插件已成功安装。',
  147. uploadFailed: '上传失败',
  148. installFailed: '安装失败',
  149. installFailedDesc: '插件安装失败。',
  150. install: '安装',
  151. installing: '安装中...',
  152. uploadingPackage: '上传 {{packageName}} 中...',
  153. readyToInstall: '即将安装以下插件',
  154. readyToInstallPackage: '即将安装以下插件',
  155. readyToInstallPackages: '即将安装以下 {{num}} 个插件',
  156. fromTrustSource: '请保证仅从<trustSource>可信源</trustSource>安装插件。',
  157. dropPluginToInstall: '拖放插件包到此处安装',
  158. labels: {
  159. repository: '仓库',
  160. version: '版本',
  161. package: '包',
  162. },
  163. close: '关闭',
  164. cancel: '取消',
  165. back: '返回',
  166. next: '下一步',
  167. pluginLoadError: '插件加载错误',
  168. pluginLoadErrorDesc: '此插件将不会被安装',
  169. installWarning: '此插件不允许安装。',
  170. },
  171. installFromGitHub: {
  172. installPlugin: '从 GitHub 安装插件',
  173. updatePlugin: '更新来自 GitHub 的插件',
  174. installedSuccessfully: '安装成功',
  175. installFailed: '安装失败',
  176. uploadFailed: '上传失败',
  177. gitHubRepo: 'GitHub 仓库',
  178. selectVersion: '选择版本',
  179. selectVersionPlaceholder: '请选择一个版本',
  180. installNote: '请确保只从可信源安装插件。',
  181. selectPackage: '选择包',
  182. selectPackagePlaceholder: '请选择一个包',
  183. },
  184. upgrade: {
  185. title: '安装插件',
  186. successfulTitle: '安装成功',
  187. description: '即将安装以下插件',
  188. usedInApps: '在 {{num}} 个应用中使用',
  189. upgrade: '安装',
  190. upgrading: '安装中...',
  191. close: '关闭',
  192. },
  193. error: {
  194. inValidGitHubUrl: '无效的 GitHub URL。请输入格式为 https://github.com/owner/repo 的有效 URL',
  195. fetchReleasesError: '无法获取发布版本。请稍后再试。',
  196. noReleasesFound: '未找到发布版本。请检查 GitHub 仓库或输入的 URL。',
  197. },
  198. marketplace: {
  199. empower: '助力您的 AI 开发',
  200. discover: '探索',
  201. and: '和',
  202. difyMarketplace: 'Dify 市场',
  203. moreFrom: '更多来自市场',
  204. noPluginFound: '未找到插件',
  205. pluginsResult: '{{num}} 个插件结果',
  206. sortBy: '排序方式',
  207. sortOption: {
  208. mostPopular: '最受欢迎',
  209. recentlyUpdated: '最近更新',
  210. newlyReleased: '最新发布',
  211. firstReleased: '首次发布',
  212. },
  213. viewMore: '查看更多',
  214. verifiedTip: '此插件由 Dify 认证',
  215. partnerTip: '此插件由 Dify 合作伙伴认证',
  216. },
  217. task: {
  218. installing: '{{installingLength}} 个插件安装中,0 已完成',
  219. installingWithSuccess: '{{installingLength}} 个插件安装中,{{successLength}} 安装成功',
  220. installingWithError: '{{installingLength}} 个插件安装中,{{successLength}} 安装成功,{{errorLength}} 安装失败',
  221. installError: '{{errorLength}} 个插件安装失败,点击查看',
  222. installedError: '{{errorLength}} 个插件安装失败',
  223. clearAll: '清除所有',
  224. },
  225. requestAPlugin: '申请插件',
  226. publishPlugins: '发布插件',
  227. difyVersionNotCompatible: '当前 Dify 版本不兼容该插件,其最低版本要求为 {{minimalDifyVersion}}',
  228. auth: {
  229. default: '默认',
  230. custom: '自定义',
  231. setDefault: '设为默认',
  232. useOAuth: '使用 OAuth',
  233. useOAuthAuth: '使用 OAuth 授权',
  234. addOAuth: '添加 OAuth',
  235. setupOAuth: '设置 OAuth 客户端',
  236. useApi: '使用 API Key',
  237. addApi: '添加 API Key',
  238. useApiAuth: 'API Key 授权配置',
  239. useApiAuthDesc: '配置凭据后,工作区内的所有成员在编排应用时都可以使用此工具。',
  240. oauthClientSettings: 'OAuth 客户端设置',
  241. saveOnly: '仅保存',
  242. saveAndAuth: '保存并授权',
  243. authorization: '凭据',
  244. authorizations: '凭据',
  245. authorizationName: '凭据名称',
  246. workspaceDefault: '工作区默认',
  247. authRemoved: '凭据已移除',
  248. clientInfo: '由于未找到此工具提供者的系统客户端密钥,因此需要手动设置,对于 redirect_uri,请使用',
  249. oauthClient: 'OAuth 客户端',
  250. },
  251. }
  252. export default translation