tools.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. const translation = {
  2. title: '工具',
  3. createCustomTool: '建立自定義工具',
  4. type: {
  5. all: '全部',
  6. builtIn: '內建',
  7. custom: '自定義',
  8. },
  9. contribute: {
  10. line1: '我有興趣為 ',
  11. line2: 'Dify 貢獻工具。',
  12. viewGuide: '檢視指南',
  13. },
  14. author: '作者',
  15. auth: {
  16. unauthorized: '去授權',
  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. api_key: 'API Key',
  58. apiKeyPlaceholder: 'HTTP 頭部名稱,用於傳遞 API Key',
  59. apiValuePlaceholder: '輸入 API Key',
  60. },
  61. key: '鍵',
  62. value: '值',
  63. },
  64. authHeaderPrefix: {
  65. title: '鑑權頭部字首',
  66. types: {
  67. basic: 'Basic',
  68. bearer: 'Bearer',
  69. custom: 'Custom',
  70. },
  71. },
  72. privacyPolicy: '隱私協議',
  73. privacyPolicyPlaceholder: '請輸入隱私協議',
  74. customDisclaimer: '自定義免責聲明',
  75. customDisclaimerPlaceholder: '請輸入自定義免責聲明',
  76. deleteToolConfirmTitle: '刪除這個工具?',
  77. deleteToolConfirmContent: '刪除工具是不可逆的。用戶將無法再訪問您的工具。',
  78. },
  79. test: {
  80. title: '測試',
  81. parametersValue: '引數和值',
  82. parameters: '引數',
  83. value: '值',
  84. testResult: '測試結果',
  85. testResultPlaceholder: '測試結果將顯示在這裡',
  86. },
  87. thought: {
  88. using: '正在使用',
  89. used: '已使用',
  90. requestTitle: '請求來自',
  91. responseTitle: '響應來自',
  92. },
  93. setBuiltInTools: {
  94. info: '資訊',
  95. setting: '設定',
  96. toolDescription: '工具描述',
  97. parameters: '引數',
  98. string: '字串',
  99. number: '數字',
  100. required: '必填',
  101. infoAndSetting: '資訊和設定',
  102. },
  103. noCustomTool: {
  104. title: '沒有自定義工具!',
  105. content: '在此統一新增和管理你的自定義工具,方便構建應用時使用。',
  106. createTool: '建立工具',
  107. },
  108. noSearchRes: {
  109. title: '抱歉,沒有結果!',
  110. content: '我們找不到任何與您的搜尋相匹配的工具。',
  111. reset: '重置搜尋',
  112. },
  113. builtInPromptTitle: '提示詞',
  114. toolRemoved: '工具已被移除',
  115. notAuthorized: '工具未授權',
  116. howToGet: '如何獲取',
  117. }
  118. export default translation