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.

plugin.ts 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. const translation = {
  2. metadata: {
  3. title: 'Plugins',
  4. },
  5. category: {
  6. all: 'All',
  7. models: 'Models',
  8. tools: 'Tools',
  9. agents: 'Agent Strategies',
  10. extensions: 'Extensions',
  11. bundles: 'Bundles',
  12. },
  13. categorySingle: {
  14. model: 'Model',
  15. tool: 'Tool',
  16. agent: 'Agent Strategy',
  17. extension: 'Extension',
  18. bundle: 'Bundle',
  19. },
  20. search: 'Search',
  21. allCategories: 'All Categories',
  22. searchCategories: 'Search Categories',
  23. searchPlugins: 'Search plugins',
  24. from: 'From',
  25. findMoreInMarketplace: 'Find more in Marketplace',
  26. searchInMarketplace: 'Search in Marketplace',
  27. fromMarketplace: 'From Marketplace',
  28. endpointsEnabled: '{{num}} sets of endpoints enabled',
  29. searchTools: 'Search tools...',
  30. installPlugin: 'Install plugin',
  31. installFrom: 'INSTALL FROM',
  32. deprecated: 'Deprecated',
  33. list: {
  34. noInstalled: 'No plugins installed',
  35. notFound: 'No plugins found',
  36. source: {
  37. marketplace: 'Install from Marketplace',
  38. github: 'Install from GitHub',
  39. local: 'Install from Local Package File',
  40. },
  41. },
  42. source: {
  43. marketplace: 'Marketplace',
  44. github: 'GitHub',
  45. local: 'Local Package File',
  46. },
  47. detailPanel: {
  48. switchVersion: 'Switch Version',
  49. categoryTip: {
  50. marketplace: 'Installed from Marketplace',
  51. github: 'Installed from Github',
  52. local: 'Local Plugin',
  53. debugging: 'Debugging Plugin',
  54. },
  55. operation: {
  56. install: 'Install',
  57. detail: 'Details',
  58. update: 'Update',
  59. info: 'Plugin Info',
  60. checkUpdate: 'Check Update',
  61. viewDetail: 'View Detail',
  62. remove: 'Remove',
  63. },
  64. actionNum: '{{num}} {{action}} INCLUDED',
  65. strategyNum: '{{num}} {{strategy}} INCLUDED',
  66. endpoints: 'Endpoints',
  67. endpointsTip: 'This plugin provides specific functionalities via endpoints, and you can configure multiple endpoint sets for current workspace.',
  68. endpointsDocLink: 'View the document',
  69. endpointsEmpty: 'Click the \'+\' button to add an endpoint',
  70. endpointDisableTip: 'Disable Endpoint',
  71. endpointDisableContent: 'Would you like to disable {{name}}? ',
  72. endpointDeleteTip: 'Remove Endpoint',
  73. endpointDeleteContent: 'Would you like to remove {{name}}? ',
  74. endpointModalTitle: 'Setup endpoint',
  75. endpointModalDesc: 'Once configured, the features provided by the plugin via API endpoints can be used.',
  76. serviceOk: 'Service OK',
  77. disabled: 'Disabled',
  78. modelNum: '{{num}} MODELS INCLUDED',
  79. toolSelector: {
  80. title: 'Add tool',
  81. toolSetting: 'Tool Settings',
  82. toolLabel: 'Tool',
  83. descriptionLabel: 'Tool description',
  84. descriptionPlaceholder: 'Brief description of the tool\'s purpose, e.g., get the temperature for a specific location.',
  85. placeholder: 'Select a tool...',
  86. settings: 'USER SETTINGS',
  87. params: 'REASONING CONFIG',
  88. paramsTip1: 'Controls LLM inference parameters.',
  89. paramsTip2: 'When \'Auto\' is off, the default value is used.',
  90. auto: 'Auto',
  91. empty: 'Click the \'+\' button to add tools. You can add multiple tools.',
  92. uninstalledTitle: 'Tool not installed',
  93. uninstalledContent: 'This plugin is installed from the local/GitHub repository. Please use after installation.',
  94. uninstalledLink: 'Manage in Plugins',
  95. unsupportedTitle: 'Unsupported Action',
  96. unsupportedContent: 'The installed plugin version does not provide this action.',
  97. unsupportedContent2: 'Click to switch version.',
  98. unsupportedMCPTool: 'Currently selected agent strategy plugin version does not support MCP tools.',
  99. },
  100. configureApp: 'Configure App',
  101. configureModel: 'Configure model',
  102. configureTool: 'Configure tool',
  103. deprecation: {
  104. fullMessage: 'This plugin has been deprecated due to {{deprecatedReason}}, and will no longer be updated. Please use <CustomLink href=\'https://example.com/\'>{{-alternativePluginId}}</CustomLink> instead.',
  105. onlyReason: 'This plugin has been deprecated due to {{deprecatedReason}} and will no longer be updated.',
  106. noReason: 'This plugin has been deprecated and will no longer be updated.',
  107. reason: {
  108. businessAdjustments: 'business adjustments',
  109. ownershipTransferred: 'ownership transferred',
  110. noMaintainer: 'no maintainer',
  111. },
  112. },
  113. },
  114. install: '{{num}} installs',
  115. installAction: 'Install',
  116. debugInfo: {
  117. title: 'Debugging',
  118. viewDocs: 'View Docs',
  119. },
  120. privilege: {
  121. title: 'Plugin Preferences',
  122. whoCanInstall: 'Who can install and manage plugins?',
  123. whoCanDebug: 'Who can debug plugins?',
  124. everyone: 'Everyone',
  125. admins: 'Admins',
  126. noone: 'No one',
  127. },
  128. pluginInfoModal: {
  129. title: 'Plugin info',
  130. repository: 'Repository',
  131. release: 'Release',
  132. packageName: 'Package',
  133. },
  134. action: {
  135. checkForUpdates: 'Check for updates',
  136. pluginInfo: 'Plugin info',
  137. delete: 'Remove plugin',
  138. deleteContentLeft: 'Would you like to remove ',
  139. deleteContentRight: ' plugin?',
  140. usedInApps: 'This plugin is being used in {{num}} apps.',
  141. },
  142. installModal: {
  143. installPlugin: 'Install Plugin',
  144. installComplete: 'Installation complete',
  145. installedSuccessfully: 'Installation successful',
  146. installedSuccessfullyDesc: 'The plugin has been installed successfully.',
  147. uploadFailed: 'Upload failed',
  148. installFailed: 'Installation failed',
  149. installFailedDesc: 'The plugin has been installed failed.',
  150. install: 'Install',
  151. installing: 'Installing...',
  152. uploadingPackage: 'Uploading {{packageName}}...',
  153. readyToInstall: 'About to install the following plugin',
  154. readyToInstallPackage: 'About to install the following plugin',
  155. readyToInstallPackages: 'About to install the following {{num}} plugins',
  156. fromTrustSource: 'Please make sure that you only install plugins from a <trustSource>trusted source</trustSource>.',
  157. dropPluginToInstall: 'Drop plugin package here to install',
  158. labels: {
  159. repository: 'Repository',
  160. version: 'Version',
  161. package: 'Package',
  162. },
  163. close: 'Close',
  164. cancel: 'Cancel',
  165. back: 'Back',
  166. next: 'Next',
  167. pluginLoadError: 'Plugin load error',
  168. pluginLoadErrorDesc: 'This plugin will not be installed',
  169. installWarning: 'This plugin is not allowed to be installed.',
  170. },
  171. installFromGitHub: {
  172. installPlugin: 'Install plugin from GitHub',
  173. updatePlugin: 'Update plugin from GitHub',
  174. installedSuccessfully: 'Installation successful',
  175. installFailed: 'Installation failed',
  176. uploadFailed: 'Upload failed',
  177. gitHubRepo: 'GitHub repository',
  178. selectVersion: 'Select version',
  179. selectVersionPlaceholder: 'Please select a version',
  180. installNote: 'Please make sure that you only install plugins from a trusted source.',
  181. selectPackage: 'Select package',
  182. selectPackagePlaceholder: 'Please select a package',
  183. },
  184. upgrade: {
  185. title: 'Install Plugin',
  186. successfulTitle: 'Install successful',
  187. description: 'About to install the following plugin',
  188. usedInApps: 'Used in {{num}} apps',
  189. upgrade: 'Install',
  190. upgrading: 'Installing...',
  191. close: 'Close',
  192. },
  193. error: {
  194. inValidGitHubUrl: 'Invalid GitHub URL. Please enter a valid URL in the format: https://github.com/owner/repo',
  195. fetchReleasesError: 'Unable to retrieve releases. Please try again later.',
  196. noReleasesFound: 'No releases found. Please check the GitHub repository or the input URL.',
  197. },
  198. marketplace: {
  199. empower: 'Empower your AI development',
  200. discover: 'Discover',
  201. and: 'and',
  202. difyMarketplace: 'Dify Marketplace',
  203. moreFrom: 'More from Marketplace',
  204. noPluginFound: 'No plugin found',
  205. pluginsResult: '{{num}} results',
  206. sortBy: 'Sort by',
  207. sortOption: {
  208. mostPopular: 'Most Popular',
  209. recentlyUpdated: 'Recently Updated',
  210. newlyReleased: 'Newly Released',
  211. firstReleased: 'First Released',
  212. },
  213. viewMore: 'View more',
  214. verifiedTip: 'Verified by Dify',
  215. partnerTip: 'Verified by a Dify partner',
  216. },
  217. task: {
  218. installing: 'Installing {{installingLength}} plugins, 0 done.',
  219. installingWithSuccess: 'Installing {{installingLength}} plugins, {{successLength}} success.',
  220. installingWithError: 'Installing {{installingLength}} plugins, {{successLength}} success, {{errorLength}} failed',
  221. installError: '{{errorLength}} plugins failed to install, click to view',
  222. installedError: '{{errorLength}} plugins failed to install',
  223. clearAll: 'Clear all',
  224. },
  225. requestAPlugin: 'Request a plugin',
  226. publishPlugins: 'Publish plugins',
  227. difyVersionNotCompatible: 'The current Dify version is not compatible with this plugin, please upgrade to the minimum version required: {{minimalDifyVersion}}',
  228. auth: {
  229. default: 'Default',
  230. custom: 'Custom',
  231. setDefault: 'Set as default',
  232. useOAuth: 'Use OAuth',
  233. useOAuthAuth: 'Use OAuth Authorization',
  234. addOAuth: 'Add OAuth',
  235. setupOAuth: 'Setup OAuth Client',
  236. useApi: 'Use API Key',
  237. addApi: 'Add API Key',
  238. useApiAuth: 'API Key Authorization Configuration',
  239. useApiAuthDesc: 'After configuring credentials, all members within the workspace can use this tool when orchestrating applications.',
  240. oauthClientSettings: 'OAuth Client Settings',
  241. saveOnly: 'Save only',
  242. saveAndAuth: 'Save and Authorize',
  243. authorization: 'Authorization',
  244. authorizations: 'Authorizations',
  245. authorizationName: 'Authorization Name',
  246. workspaceDefault: 'Workspace Default',
  247. authRemoved: 'Auth removed',
  248. clientInfo: 'As no system client secrets found for this tool provider, setup it manually is required, for redirect_uri, please use',
  249. oauthClient: 'OAuth Client',
  250. },
  251. }
  252. export default translation