tools.ts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. const translation = {
  2. title: 'Tools',
  3. createCustomTool: 'Create Custom Tool',
  4. customToolTip: 'Learn more about Dify custom tools',
  5. type: {
  6. all: 'All',
  7. builtIn: 'Tools',
  8. custom: 'Custom',
  9. workflow: 'Workflow',
  10. },
  11. contribute: {
  12. line1: 'I\'m interested in ',
  13. line2: 'contributing tools to Dify.',
  14. viewGuide: 'View the guide',
  15. },
  16. author: 'By',
  17. auth: {
  18. unauthorized: 'To Authorize',
  19. authorized: 'Authorized',
  20. setup: 'Set up authorization to use',
  21. setupModalTitle: 'Set Up Authorization',
  22. setupModalTitleDescription: 'After configuring credentials, all members within the workspace can use this tool when orchestrating applications.',
  23. },
  24. includeToolNum: '{{num}} {{action}} included',
  25. addTool: 'Add Tool',
  26. addToolModal: {
  27. type: 'type',
  28. category: 'category',
  29. add: 'add',
  30. added: 'added',
  31. manageInTools: 'Manage in Tools',
  32. emptyTitle: 'No workflow tool available',
  33. emptyTip: 'Go to "Workflow -> Publish as Tool"',
  34. emptyTitleCustom: 'No custom tool available',
  35. emptyTipCustom: 'Create a custom tool',
  36. },
  37. createTool: {
  38. title: 'Create Custom Tool',
  39. editAction: 'Configure',
  40. editTitle: 'Edit Custom Tool',
  41. name: 'Name',
  42. toolNamePlaceHolder: 'Enter the tool name',
  43. nameForToolCall: 'Tool call name',
  44. nameForToolCallPlaceHolder: 'Used for machine recognition, such as getCurrentWeather, list_pets',
  45. nameForToolCallTip: 'Only supports numbers, letters, and underscores.',
  46. description: 'Description',
  47. descriptionPlaceholder: 'Brief description of the tool\'s purpose, e.g., get the temperature for a specific location.',
  48. schema: 'Schema',
  49. schemaPlaceHolder: 'Enter your OpenAPI schema here',
  50. viewSchemaSpec: 'View the OpenAPI-Swagger Specification',
  51. importFromUrl: 'Import from URL',
  52. importFromUrlPlaceHolder: 'https://...',
  53. urlError: 'Please enter a valid URL',
  54. examples: 'Examples',
  55. exampleOptions: {
  56. json: 'Weather(JSON)',
  57. yaml: 'Pet Store(YAML)',
  58. blankTemplate: 'Blank Template',
  59. },
  60. availableTools: {
  61. title: 'Available Tools',
  62. name: 'Name',
  63. description: 'Description',
  64. method: 'Method',
  65. path: 'Path',
  66. action: 'Actions',
  67. test: 'Test',
  68. },
  69. authMethod: {
  70. title: 'Authorization method',
  71. type: 'Authorization type',
  72. keyTooltip: 'Http Header Key, You can leave it with "Authorization" if you have no idea what it is or set it to a custom value',
  73. types: {
  74. none: 'None',
  75. api_key: 'API Key',
  76. apiKeyPlaceholder: 'HTTP header name for API Key',
  77. apiValuePlaceholder: 'Enter API Key',
  78. },
  79. key: 'Key',
  80. value: 'Value',
  81. },
  82. authHeaderPrefix: {
  83. title: 'Auth Type',
  84. types: {
  85. basic: 'Basic',
  86. bearer: 'Bearer',
  87. custom: 'Custom',
  88. },
  89. },
  90. privacyPolicy: 'Privacy policy',
  91. privacyPolicyPlaceholder: 'Please enter privacy policy',
  92. toolInput: {
  93. title: 'Tool Input',
  94. name: 'Name',
  95. required: 'Required',
  96. method: 'Method',
  97. methodSetting: 'Setting',
  98. methodSettingTip: 'User fills in the tool configuration',
  99. methodParameter: 'Parameter',
  100. methodParameterTip: 'LLM fills during inference',
  101. label: 'Tags',
  102. labelPlaceholder: 'Choose tags(optional)',
  103. description: 'Description',
  104. descriptionPlaceholder: 'Description of the parameter\'s meaning',
  105. },
  106. customDisclaimer: 'Custom disclaimer',
  107. customDisclaimerPlaceholder: 'Please enter custom disclaimer',
  108. confirmTitle: 'Confirm to save ?',
  109. confirmTip: 'Apps using this tool will be affected',
  110. deleteToolConfirmTitle: 'Delete this Tool?',
  111. deleteToolConfirmContent: 'Deleting the Tool is irreversible. Users will no longer be able to access your Tool.',
  112. },
  113. test: {
  114. title: 'Test',
  115. parametersValue: 'Parameters & Value',
  116. parameters: 'Parameters',
  117. value: 'Value',
  118. testResult: 'Test Results',
  119. testResultPlaceholder: 'Test result will show here',
  120. },
  121. thought: {
  122. using: 'Using',
  123. used: 'Used',
  124. requestTitle: 'Request',
  125. responseTitle: 'Response',
  126. },
  127. setBuiltInTools: {
  128. info: 'Info',
  129. setting: 'Setting',
  130. toolDescription: 'Tool description',
  131. parameters: 'parameters',
  132. string: 'string',
  133. number: 'number',
  134. file: 'file',
  135. required: 'Required',
  136. infoAndSetting: 'Info & Settings',
  137. },
  138. noCustomTool: {
  139. title: 'No custom tools!',
  140. content: 'Add and manage your custom tools here for building AI apps.',
  141. createTool: 'Create Tool',
  142. },
  143. noSearchRes: {
  144. title: 'Sorry, no results!',
  145. content: 'We couldn\'t find any tools that match your search.',
  146. reset: 'Reset Search',
  147. },
  148. builtInPromptTitle: 'Prompt',
  149. toolRemoved: 'Tool removed',
  150. notAuthorized: 'Not authorized',
  151. howToGet: 'How to get',
  152. openInStudio: 'Open in Studio',
  153. toolNameUsageTip: 'Tool call name for agent reasoning and prompting',
  154. copyToolName: 'Copy Name',
  155. noTools: 'No tools found',
  156. }
  157. export default translation