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.

tools.ts 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. const translation = {
  2. title: '工具',
  3. createCustomTool: '建立自定義工具',
  4. type: {
  5. all: '全部',
  6. builtIn: '內建',
  7. custom: '自定義',
  8. workflow: '工作流',
  9. },
  10. contribute: {
  11. line1: '我有興趣為 ',
  12. line2: 'Dify 貢獻工具。',
  13. viewGuide: '檢視指南',
  14. },
  15. author: '作者',
  16. auth: {
  17. authorized: '已授權',
  18. setup: '要使用請先授權',
  19. setupModalTitle: '設定授權',
  20. setupModalTitleDescription: '配置憑據後,工作區中的所有成員都可以在編排應用程式時使用此工具。',
  21. },
  22. includeToolNum: '包含 {{num}} 個工具',
  23. addTool: '新增工具',
  24. createTool: {
  25. title: '建立自定義工具',
  26. editAction: '編輯',
  27. editTitle: '編輯自定義工具',
  28. name: '名稱',
  29. toolNamePlaceHolder: '輸入工具名稱',
  30. schema: 'Schema',
  31. schemaPlaceHolder: '在此處輸入您的 OpenAPI schema',
  32. viewSchemaSpec: '檢視 OpenAPI-Swagger 規範',
  33. importFromUrl: '從 URL 中匯入',
  34. importFromUrlPlaceHolder: 'https://...',
  35. urlError: '請輸入有效的 URL',
  36. examples: '例子',
  37. exampleOptions: {
  38. json: '天氣 (JSON)',
  39. yaml: '寵物商店 (YAML)',
  40. blankTemplate: '空白模版',
  41. },
  42. availableTools: {
  43. title: '可用工具',
  44. name: '名稱',
  45. description: '描述',
  46. method: '方法',
  47. path: '路徑',
  48. action: '操作',
  49. test: '測試',
  50. },
  51. authMethod: {
  52. title: '鑑權方法',
  53. type: '鑑權型別',
  54. keyTooltip: 'HTTP 頭部名稱,如果你不知道是什麼,可以將其保留為 Authorization 或設定為自定義值',
  55. types: {
  56. none: '無',
  57. apiKeyPlaceholder: 'HTTP 頭部名稱,用於傳遞 API Key',
  58. apiValuePlaceholder: '輸入 API Key',
  59. api_key_query: '查詢參數',
  60. queryParamPlaceholder: 'API 金鑰的查詢參數名稱',
  61. api_key_header: '標題',
  62. },
  63. key: '鍵',
  64. value: '值',
  65. queryParam: '查詢參數',
  66. queryParamTooltip: '要傳遞的 API 金鑰查詢參數的名稱,例如在 "https://example.com/test?key=API_KEY" 中的 "key"。',
  67. },
  68. authHeaderPrefix: {
  69. title: '鑑權頭部字首',
  70. types: {
  71. basic: 'Basic',
  72. bearer: 'Bearer',
  73. custom: 'Custom',
  74. },
  75. },
  76. privacyPolicy: '隱私協議',
  77. privacyPolicyPlaceholder: '請輸入隱私協議',
  78. customDisclaimer: '自定義免責聲明',
  79. customDisclaimerPlaceholder: '請輸入自定義免責聲明',
  80. deleteToolConfirmTitle: '刪除這個工具?',
  81. deleteToolConfirmContent: '刪除工具是不可逆的。用戶將無法再訪問您的工具。',
  82. toolInput: {
  83. labelPlaceholder: '選擇標籤(選擇標籤)',
  84. label: '標籤',
  85. required: '必填',
  86. methodSettingTip: '用戶填寫工具配置',
  87. name: '名字',
  88. description: '描述',
  89. methodParameterTip: '推理期間 LLM 填充',
  90. method: '方法',
  91. title: '工具輸入',
  92. methodSetting: '設置',
  93. methodParameter: '參數',
  94. descriptionPlaceholder: '參數含義的描述',
  95. },
  96. description: '描述',
  97. nameForToolCall: '工具調用名稱',
  98. confirmTitle: '確認儲存?',
  99. descriptionPlaceholder: '工具用途的簡要描述,例如,獲取特定位置的溫度。',
  100. nameForToolCallTip: '僅支援數位、字母和下劃線。',
  101. confirmTip: '使用此工具的應用程式將受到影響',
  102. nameForToolCallPlaceHolder: '用於機器識別,例如 getCurrentWeather、list_pets',
  103. },
  104. test: {
  105. title: '測試',
  106. parametersValue: '引數和值',
  107. parameters: '引數',
  108. value: '值',
  109. testResult: '測試結果',
  110. testResultPlaceholder: '測試結果將顯示在這裡',
  111. },
  112. thought: {
  113. using: '正在使用',
  114. used: '已使用',
  115. requestTitle: '請求來自',
  116. responseTitle: '響應來自',
  117. },
  118. setBuiltInTools: {
  119. info: '資訊',
  120. setting: '設定',
  121. toolDescription: '工具描述',
  122. parameters: '引數',
  123. string: '字串',
  124. number: '數字',
  125. required: '必填',
  126. infoAndSetting: '資訊和設定',
  127. file: '檔',
  128. },
  129. noCustomTool: {
  130. title: '沒有自定義工具!',
  131. content: '在此統一新增和管理你的自定義工具,方便構建應用時使用。',
  132. createTool: '建立工具',
  133. },
  134. noSearchRes: {
  135. title: '抱歉,沒有結果!',
  136. content: '我們找不到任何與您的搜尋相匹配的工具。',
  137. reset: '重置搜尋',
  138. },
  139. builtInPromptTitle: '提示詞',
  140. toolRemoved: '工具已被移除',
  141. notAuthorized: '工具未授權',
  142. howToGet: '如何獲取',
  143. addToolModal: {
  144. add: '加',
  145. type: '類型',
  146. added: '添加',
  147. manageInTools: '在工具中管理',
  148. category: '類別',
  149. custom: {
  150. title: '沒有可用的自訂工具',
  151. tip: '創建一個自訂工具',
  152. },
  153. workflow: {
  154. title: '沒有可用的工作流程工具',
  155. tip: '在 Studio 中將工作流程發佈為工具',
  156. },
  157. mcp: {
  158. title: '沒有可用的 MCP 工具',
  159. tip: '新增一個 MCP 伺服器',
  160. },
  161. agent: {
  162. title: '沒有可用的代理策略',
  163. },
  164. },
  165. customToolTip: '瞭解有關 Dify 自訂工具的更多資訊',
  166. toolNameUsageTip: '用於代理推理和提示的工具調用名稱',
  167. openInStudio: '在 Studio 中打開',
  168. noTools: '未找到工具',
  169. copyToolName: '複製名稱',
  170. mcp: {
  171. create: {
  172. cardTitle: '新增 MCP 伺服器 (HTTP)',
  173. cardLink: '了解更多關於 MCP 伺服器整合',
  174. },
  175. noConfigured: '未配置的伺服器',
  176. updateTime: '已更新',
  177. toolsCount: '{{count}} 個工具',
  178. noTools: '沒有可用的工具',
  179. modal: {
  180. title: '新增 MCP 伺服器 (HTTP)',
  181. editTitle: '編輯 MCP 伺服器 (HTTP)',
  182. name: '名稱與圖示',
  183. namePlaceholder: '為您的 MCP 伺服器命名',
  184. serverUrl: '伺服器 URL',
  185. serverUrlPlaceholder: '伺服器端點的 URL',
  186. serverUrlWarning: '更新伺服器地址可能會干擾依賴於此伺服器的應用程式',
  187. serverIdentifier: '伺服器識別碼',
  188. serverIdentifierTip: '在工作區內 MCP 伺服器的唯一識別碼。僅限小寫字母、數字、底線和連字符。最多 24 個字元。',
  189. serverIdentifierPlaceholder: '唯一識別碼,例如:my-mcp-server',
  190. serverIdentifierWarning: '更改 ID 之後,現有應用程式將無法識別伺服器',
  191. cancel: '取消',
  192. save: '儲存',
  193. confirm: '新增並授權',
  194. },
  195. delete: '刪除 MCP 伺服器',
  196. deleteConfirmTitle: '您確定要刪除 {{mcp}} 嗎?',
  197. operation: {
  198. edit: '編輯',
  199. remove: '移除',
  200. },
  201. authorize: '授權',
  202. authorizing: '正在授權...',
  203. authorizingRequired: '需要授權',
  204. authorizeTip: '授權後,這裡將顯示工具。',
  205. update: '更新',
  206. updating: '更新中',
  207. gettingTools: '獲取工具...',
  208. updateTools: '更新工具...',
  209. toolsEmpty: '工具未加載',
  210. getTools: '獲取工具',
  211. toolUpdateConfirmTitle: '更新工具列表',
  212. toolUpdateConfirmContent: '更新工具列表可能會影響現有應用程式。您要繼續嗎?',
  213. toolsNum: '{{count}} 個工具包含',
  214. onlyTool: '包含 1 個工具',
  215. identifier: '伺服器識別碼 (點擊複製)',
  216. server: {
  217. title: 'MCP 伺服器',
  218. url: '伺服器 URL',
  219. reGen: '您想要重新生成伺服器 URL 嗎?',
  220. addDescription: '新增描述',
  221. edit: '編輯描述',
  222. modal: {
  223. addTitle: '新增描述以啟用 MCP 伺服器',
  224. editTitle: '編輯描述',
  225. description: '描述',
  226. descriptionPlaceholder: '說明此工具的用途及如何被 LLM 使用',
  227. parameters: '參數',
  228. parametersTip: '為每個參數添加描述,以幫助 LLM 理解其目的和約束。',
  229. parametersPlaceholder: '參數的目的和約束',
  230. confirm: '啟用 MCP 伺服器',
  231. },
  232. publishTip: '應用程式尚未發布。請先發布應用程式。',
  233. },
  234. },
  235. }
  236. export default translation