tools.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. const translation = {
  2. title: 'Tools',
  3. createCustomTool: 'Create Custom Tool',
  4. type: {
  5. all: 'All',
  6. builtIn: 'Built-in',
  7. custom: 'Custom',
  8. },
  9. contribute: {
  10. line1: 'I\'m interested in ',
  11. line2: 'contributing tools to Dify.',
  12. viewGuide: 'View the guide',
  13. },
  14. author: 'By',
  15. auth: {
  16. unauthorized: 'To Authorize',
  17. authorized: 'Authorized',
  18. setup: 'Set up authorization to use',
  19. setupModalTitle: 'Set Up Authorization',
  20. setupModalTitleDescription: 'After configuring credentials, all members within the workspace can use this tool when orchestrating applications.',
  21. },
  22. includeToolNum: '{{num}} tools included',
  23. addTool: 'Add Tool',
  24. createTool: {
  25. title: 'Create Custom Tool',
  26. editAction: 'Configure',
  27. editTitle: 'Edit Custom Tool',
  28. name: 'Name',
  29. toolNamePlaceHolder: 'Enter the tool name',
  30. schema: 'Schema',
  31. schemaPlaceHolder: 'Enter your OpenAPI schema here',
  32. viewSchemaSpec: 'View the OpenAPI-Swagger Specification',
  33. importFromUrl: 'Import from URL',
  34. importFromUrlPlaceHolder: 'https://...',
  35. urlError: 'Please enter a valid URL',
  36. examples: 'Examples',
  37. exampleOptions: {
  38. json: 'Weather(JSON)',
  39. yaml: 'Pet Store(YAML)',
  40. blankTemplate: 'Blank Template',
  41. },
  42. availableTools: {
  43. title: 'Available Tools',
  44. name: 'Name',
  45. description: 'Description',
  46. method: 'Method',
  47. path: 'Path',
  48. action: 'Actions',
  49. test: 'Test',
  50. },
  51. authMethod: {
  52. title: 'Authorization method',
  53. type: 'Authorization type',
  54. 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',
  55. types: {
  56. none: 'None',
  57. api_key: 'API Key',
  58. apiKeyPlaceholder: 'HTTP header name for API Key',
  59. apiValuePlaceholder: 'Enter API Key',
  60. },
  61. key: 'Key',
  62. value: 'Value',
  63. },
  64. authHeaderPrefix: {
  65. title: 'Auth Type',
  66. types: {
  67. basic: 'Basic',
  68. bearer: 'Bearer',
  69. custom: 'Custom',
  70. },
  71. },
  72. privacyPolicy: 'Privacy policy',
  73. privacyPolicyPlaceholder: 'Please enter privacy policy',
  74. },
  75. test: {
  76. title: 'Test',
  77. parametersValue: 'Parameters & Value',
  78. parameters: 'Parameters',
  79. value: 'Value',
  80. testResult: 'Test Results',
  81. testResultPlaceholder: 'Test result will show here',
  82. },
  83. thought: {
  84. using: 'Using',
  85. used: 'Used',
  86. requestTitle: 'Request to',
  87. responseTitle: 'Response from',
  88. },
  89. setBuiltInTools: {
  90. info: 'Info',
  91. setting: 'Setting',
  92. toolDescription: 'Tool description',
  93. parameters: 'parameters',
  94. string: 'string',
  95. number: 'number',
  96. required: 'Required',
  97. infoAndSetting: 'Info & Settings',
  98. },
  99. noCustomTool: {
  100. title: 'No custom tools!',
  101. content: 'Add and manage your custom tools here for building AI apps.',
  102. createTool: 'Create Tool',
  103. },
  104. noSearchRes: {
  105. title: 'Sorry, no results!',
  106. content: 'We couldn\'t find any tools that match your search.',
  107. reset: 'Reset Search',
  108. },
  109. builtInPromptTitle: 'Prompt',
  110. toolRemoved: 'Tool removed',
  111. notAuthorized: 'Tool not authorized',
  112. howToGet: 'How to get',
  113. }
  114. export default translation