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 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. list: {
  33. noInstalled: 'No plugins installed',
  34. notFound: 'No plugins found',
  35. source: {
  36. marketplace: 'Install from Marketplace',
  37. github: 'Install from GitHub',
  38. local: 'Install from Local Package File',
  39. },
  40. },
  41. source: {
  42. marketplace: 'Marketplace',
  43. github: 'GitHub',
  44. local: 'Local Package File',
  45. },
  46. detailPanel: {
  47. switchVersion: 'Switch Version',
  48. categoryTip: {
  49. marketplace: 'Installed from Marketplace',
  50. github: 'Installed from Github',
  51. local: 'Local Plugin',
  52. debugging: 'Debugging Plugin',
  53. },
  54. operation: {
  55. install: 'Install',
  56. detail: 'Details',
  57. update: 'Update',
  58. info: 'Plugin Info',
  59. checkUpdate: 'Check Update',
  60. viewDetail: 'View Detail',
  61. remove: 'Remove',
  62. },
  63. actionNum: '{{num}} {{action}} INCLUDED',
  64. strategyNum: '{{num}} {{strategy}} INCLUDED',
  65. endpoints: 'Endpoints',
  66. endpointsTip: 'This plugin provides specific functionalities via endpoints, and you can configure multiple endpoint sets for current workspace.',
  67. endpointsDocLink: 'View the document',
  68. endpointsEmpty: 'Click the \'+\' button to add an endpoint',
  69. endpointDisableTip: 'Disable Endpoint',
  70. endpointDisableContent: 'Would you like to disable {{name}}? ',
  71. endpointDeleteTip: 'Remove Endpoint',
  72. endpointDeleteContent: 'Would you like to remove {{name}}? ',
  73. endpointModalTitle: 'Setup endpoint',
  74. endpointModalDesc: 'Once configured, the features provided by the plugin via API endpoints can be used.',
  75. serviceOk: 'Service OK',
  76. disabled: 'Disabled',
  77. modelNum: '{{num}} MODELS INCLUDED',
  78. toolSelector: {
  79. title: 'Add tool',
  80. toolSetting: 'Tool Settings',
  81. toolLabel: 'Tool',
  82. descriptionLabel: 'Tool description',
  83. descriptionPlaceholder: 'Brief description of the tool\'s purpose, e.g., get the temperature for a specific location.',
  84. placeholder: 'Select a tool...',
  85. settings: 'USER SETTINGS',
  86. params: 'REASONING CONFIG',
  87. paramsTip1: 'Controls LLM inference parameters.',
  88. paramsTip2: 'When \'Automatic\' is off, the default value is used.',
  89. auto: 'Automatic',
  90. empty: 'Click the \'+\' button to add tools. You can add multiple tools.',
  91. uninstalledTitle: 'Tool not installed',
  92. uninstalledContent: 'This plugin is installed from the local/GitHub repository. Please use after installation.',
  93. uninstalledLink: 'Manage in Plugins',
  94. unsupportedTitle: 'Unsupported Action',
  95. unsupportedContent: 'The installed plugin version does not provide this action.',
  96. unsupportedContent2: 'Click to switch version.',
  97. },
  98. configureApp: 'Configure App',
  99. configureModel: 'Configure model',
  100. configureTool: 'Configure tool',
  101. },
  102. install: '{{num}} installs',
  103. installAction: 'Install',
  104. debugInfo: {
  105. title: 'Debugging',
  106. viewDocs: 'View Docs',
  107. },
  108. privilege: {
  109. title: 'Plugin Preferences',
  110. whoCanInstall: 'Who can install and manage plugins?',
  111. whoCanDebug: 'Who can debug plugins?',
  112. everyone: 'Everyone',
  113. admins: 'Admins',
  114. noone: 'No one',
  115. },
  116. pluginInfoModal: {
  117. title: 'Plugin info',
  118. repository: 'Repository',
  119. release: 'Release',
  120. packageName: 'Package',
  121. },
  122. action: {
  123. checkForUpdates: 'Check for updates',
  124. pluginInfo: 'Plugin info',
  125. delete: 'Remove plugin',
  126. deleteContentLeft: 'Would you like to remove ',
  127. deleteContentRight: ' plugin?',
  128. usedInApps: 'This plugin is being used in {{num}} apps.',
  129. },
  130. installModal: {
  131. installPlugin: 'Install Plugin',
  132. installComplete: 'Installation complete',
  133. installedSuccessfully: 'Installation successful',
  134. installedSuccessfullyDesc: 'The plugin has been installed successfully.',
  135. uploadFailed: 'Upload failed',
  136. installFailed: 'Installation failed',
  137. installFailedDesc: 'The plugin has been installed failed.',
  138. install: 'Install',
  139. installing: 'Installing...',
  140. uploadingPackage: 'Uploading {{packageName}}...',
  141. readyToInstall: 'About to install the following plugin',
  142. readyToInstallPackage: 'About to install the following plugin',
  143. readyToInstallPackages: 'About to install the following {{num}} plugins',
  144. fromTrustSource: 'Please make sure that you only install plugins from a <trustSource>trusted source</trustSource>.',
  145. dropPluginToInstall: 'Drop plugin package here to install',
  146. labels: {
  147. repository: 'Repository',
  148. version: 'Version',
  149. package: 'Package',
  150. },
  151. close: 'Close',
  152. cancel: 'Cancel',
  153. back: 'Back',
  154. next: 'Next',
  155. pluginLoadError: 'Plugin load error',
  156. pluginLoadErrorDesc: 'This plugin will not be installed',
  157. installWarning: 'This plugin is not allowed to be installed.',
  158. },
  159. installFromGitHub: {
  160. installPlugin: 'Install plugin from GitHub',
  161. updatePlugin: 'Update plugin from GitHub',
  162. installedSuccessfully: 'Installation successful',
  163. installFailed: 'Installation failed',
  164. uploadFailed: 'Upload failed',
  165. gitHubRepo: 'GitHub repository',
  166. selectVersion: 'Select version',
  167. selectVersionPlaceholder: 'Please select a version',
  168. installNote: 'Please make sure that you only install plugins from a trusted source.',
  169. selectPackage: 'Select package',
  170. selectPackagePlaceholder: 'Please select a package',
  171. },
  172. upgrade: {
  173. title: 'Install Plugin',
  174. successfulTitle: 'Install successful',
  175. description: 'About to install the following plugin',
  176. usedInApps: 'Used in {{num}} apps',
  177. upgrade: 'Install',
  178. upgrading: 'Installing...',
  179. close: 'Close',
  180. },
  181. error: {
  182. inValidGitHubUrl: 'Invalid GitHub URL. Please enter a valid URL in the format: https://github.com/owner/repo',
  183. fetchReleasesError: 'Unable to retrieve releases. Please try again later.',
  184. noReleasesFound: 'No releases found. Please check the GitHub repository or the input URL.',
  185. },
  186. marketplace: {
  187. empower: 'Empower your AI development',
  188. discover: 'Discover',
  189. and: 'and',
  190. difyMarketplace: 'Dify Marketplace',
  191. moreFrom: 'More from Marketplace',
  192. noPluginFound: 'No plugin found',
  193. pluginsResult: '{{num}} results',
  194. sortBy: 'Sort by',
  195. sortOption: {
  196. mostPopular: 'Most Popular',
  197. recentlyUpdated: 'Recently Updated',
  198. newlyReleased: 'Newly Released',
  199. firstReleased: 'First Released',
  200. },
  201. viewMore: 'View more',
  202. verifiedTip: 'Verified by Dify',
  203. partnerTip: 'Verified by a Dify partner',
  204. },
  205. task: {
  206. installing: 'Installing {{installingLength}} plugins, 0 done.',
  207. installingWithSuccess: 'Installing {{installingLength}} plugins, {{successLength}} success.',
  208. installingWithError: 'Installing {{installingLength}} plugins, {{successLength}} success, {{errorLength}} failed',
  209. installError: '{{errorLength}} plugins failed to install, click to view',
  210. installedError: '{{errorLength}} plugins failed to install',
  211. clearAll: 'Clear all',
  212. },
  213. requestAPlugin: 'Request a plugin',
  214. publishPlugins: 'Publish plugins',
  215. difyVersionNotCompatible: 'The current Dify version is not compatible with this plugin, please upgrade to the minimum version required: {{minimalDifyVersion}}',
  216. }
  217. export default translation