tools.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. types: {
  55. none: 'None',
  56. api_key: 'API Key',
  57. apiKeyPlaceholder: 'HTTP header name for API Key',
  58. apiValuePlaceholder: 'Enter API Key',
  59. },
  60. key: 'Key',
  61. value: 'Value',
  62. },
  63. privacyPolicy: 'Privacy policy',
  64. privacyPolicyPlaceholder: 'Please enter privacy policy',
  65. },
  66. test: {
  67. title: 'Test',
  68. parametersValue: 'Parameters & Value',
  69. parameters: 'Parameters',
  70. value: 'Value',
  71. testResult: 'Test Results',
  72. testResultPlaceholder: 'Test result will show here',
  73. },
  74. thought: {
  75. using: 'Using',
  76. used: 'Used',
  77. requestTitle: 'Request to',
  78. responseTitle: 'Response from',
  79. },
  80. setBuiltInTools: {
  81. info: 'Info',
  82. setting: 'Setting',
  83. toolDescription: 'Tool description',
  84. parameters: 'parameters',
  85. string: 'string',
  86. number: 'number',
  87. required: 'Required',
  88. infoAndSetting: 'Info & Settings',
  89. },
  90. noCustomTool: {
  91. title: 'No custom tools!',
  92. content: 'Add and manage your custom tools here for building AI apps.',
  93. createTool: 'Create Tool',
  94. },
  95. noSearchRes: {
  96. title: 'Sorry, no results!',
  97. content: 'We couldn\'t find any tools that match your search.',
  98. reset: 'Reset Search',
  99. },
  100. builtInPromptTitle: 'Prompt',
  101. toolRemoved: 'Tool removed',
  102. notAuthorized: 'Tool not authorized',
  103. howToGet: 'How to get',
  104. }
  105. export default translation