plugin.ts 7.5 KB

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