app-debug.en.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. const translation = {
  2. pageTitle: {
  3. line1: 'PROMPT',
  4. line2: 'Engineering',
  5. },
  6. promptMode: {
  7. simple: 'Switch to Expert Mode to edit the whole PROMPT',
  8. advanced: 'Expert Mode',
  9. switchBack: 'Switch back',
  10. advancedWarning: {
  11. title: 'You have switched to Expert Mode, and once you modify the PROMPT, you CANNOT return to the basic mode.',
  12. description: 'In Expert Mode, you can edit whole PROMPT.',
  13. learnMore: 'Learn more',
  14. ok: 'OK',
  15. },
  16. operation: {
  17. addMessage: 'Add Message',
  18. },
  19. contextMissing: 'Context component missed, the effectiveness of the prompt may not be good.',
  20. },
  21. operation: {
  22. applyConfig: 'Publish',
  23. resetConfig: 'Reset',
  24. addFeature: 'Add Feature',
  25. automatic: 'Automatic',
  26. stopResponding: 'Stop responding',
  27. agree: 'like',
  28. disagree: 'dislike',
  29. cancelAgree: 'Cancel like',
  30. cancelDisagree: 'Cancel dislike',
  31. userAction: 'User ',
  32. },
  33. notSetAPIKey: {
  34. title: 'LLM provider key has not been set',
  35. trailFinished: 'Trail finished',
  36. description: 'The LLM provider key has not been set, and it needs to be set before debugging.',
  37. settingBtn: 'Go to settings',
  38. },
  39. trailUseGPT4Info: {
  40. title: 'Does not support gpt-4 now',
  41. description: 'Use gpt-4, please set API Key.',
  42. },
  43. feature: {
  44. groupChat: {
  45. title: 'Chat enhance',
  46. description: 'Add pre-conversation settings for apps can enhance user experience.',
  47. },
  48. groupExperience: {
  49. title: 'Experience enhance',
  50. },
  51. conversationOpener: {
  52. title: 'Conversation remakers',
  53. description: 'In a chat app, the first sentence that the AI actively speaks to the user is usually used as a welcome.',
  54. },
  55. suggestedQuestionsAfterAnswer: {
  56. title: 'Follow-up',
  57. description: 'Setting up next questions suggestion can give users a better chat.',
  58. resDes: '3 suggestions for user next question.',
  59. tryToAsk: 'Try to ask',
  60. },
  61. moreLikeThis: {
  62. title: 'More like this',
  63. description: 'Generate multiple texts at once, and then edit and continue to generate',
  64. generateNumTip: 'Number of each generated times',
  65. tip: 'Using this feature will incur additional tokens overhead',
  66. },
  67. speechToText: {
  68. title: 'Speech to Text',
  69. description: 'Once enabled, you can use voice input.',
  70. resDes: 'Voice input is enabled',
  71. },
  72. citation: {
  73. title: 'Citations and Attributions',
  74. description: 'Once enabled, show source document and attributed section of the generated content.',
  75. resDes: 'Citations and Attributions is enabled',
  76. },
  77. dataSet: {
  78. title: 'Context',
  79. noData: 'You can import datasets as context',
  80. words: 'Words',
  81. textBlocks: 'Text Blocks',
  82. selectTitle: 'Select reference dataset',
  83. selected: 'Datasets selected',
  84. noDataSet: 'No dataset found',
  85. toCreate: 'Go to create',
  86. notSupportSelectMulti: 'Currently only support one dataset',
  87. queryVariable: {
  88. title: 'Query variable',
  89. tip: 'This variable will be used as the query input for context retrieval, obtaining context information related to the input of this variable.',
  90. choosePlaceholder: 'Choose query variable',
  91. noVar: 'No variables',
  92. noVarTip: 'please create a variable under the Variables section',
  93. unableToQueryDataSet: 'Unable to query the dataset',
  94. unableToQueryDataSetTip: 'Unable to query the dataset successfully, please choose a context query variable in the context section.',
  95. ok: 'OK',
  96. contextVarNotEmpty: 'context query variable can not be empty',
  97. deleteContextVarTitle: 'Delete variable “{{varName}}”?',
  98. deleteContextVarTip: 'This variable has been set as a context query variable, and removing it will impact the normal use of the dataset. If you still need to delete it, please reselect it in the context section.',
  99. },
  100. },
  101. tools: {
  102. title: 'Tools',
  103. tips: 'Tools provide a standard API call method, taking user input or variables as request parameters for querying external data as context.',
  104. toolsInUse: '{{count}} tools in use',
  105. modal: {
  106. title: 'Tool',
  107. toolType: {
  108. title: 'Tool Type',
  109. placeholder: 'Please select the tool type',
  110. },
  111. name: {
  112. title: 'Name',
  113. placeholder: 'Please enter the name',
  114. },
  115. variableName: {
  116. title: 'Variable Name',
  117. placeholder: 'Please enter the variable name',
  118. },
  119. },
  120. },
  121. conversationHistory: {
  122. title: 'Conversation History',
  123. description: 'Set prefix names for conversation roles',
  124. tip: 'The Conversation History is not enabled, please add <histories> in the prompt above.',
  125. learnMore: 'Learn more',
  126. editModal: {
  127. title: 'Edit Conversation Role Names',
  128. userPrefix: 'User prefix',
  129. assistantPrefix: 'Assistant prefix',
  130. },
  131. },
  132. toolbox: {
  133. title: 'TOOLBOX',
  134. },
  135. moderation: {
  136. title: 'Content moderation',
  137. description: 'Secure model output by using moderation API or maintaining a sensitive word list.',
  138. allEnabled: 'INPUT/OUTPUT Content Enabled',
  139. inputEnabled: 'INPUT Content Enabled',
  140. outputEnabled: 'OUTPUT Content Enabled',
  141. modal: {
  142. title: 'Content moderation settings',
  143. provider: {
  144. title: 'Provider',
  145. openai: 'OpenAI Moderation',
  146. openaiTip: {
  147. prefix: 'OpenAI Moderation requires an OpenAI API key configured in the ',
  148. suffix: '.',
  149. },
  150. keywords: 'Keywords',
  151. },
  152. keywords: {
  153. tip: 'One per line, separated by line breaks. Up to 100 characters per line.',
  154. placeholder: 'One per line, separated by line breaks',
  155. line: 'Line',
  156. },
  157. content: {
  158. input: 'Moderate INPUT Content',
  159. output: 'Moderate OUTPUT Content',
  160. preset: 'Preset replies',
  161. placeholder: 'Preset replies content here',
  162. condition: 'Moderate INPUT and OUTPUT Content enabled at least one',
  163. fromApi: 'Preset replies are returned by API',
  164. errorMessage: 'Preset replies cannot be empty',
  165. supportMarkdown: 'Markdown supported',
  166. },
  167. openaiNotConfig: {
  168. before: 'OpenAI Moderation requires an OpenAI API key configured in the',
  169. after: '',
  170. },
  171. },
  172. },
  173. },
  174. automatic: {
  175. title: 'Automated application orchestration',
  176. description: 'Describe your scenario, Dify will orchestrate an application for you.',
  177. intendedAudience: 'Who is the intended audience?',
  178. intendedAudiencePlaceHolder: 'e.g. Student',
  179. solveProblem: 'What problems do they hope AI can solve for them?',
  180. solveProblemPlaceHolder: 'e.g. Assessing academic performance',
  181. generate: 'Generate',
  182. audiencesRequired: 'Audiences required',
  183. problemRequired: 'Problem required',
  184. resTitle: 'We have orchestrated the following application for you.',
  185. apply: 'Apply this orchestration',
  186. noData: 'Describe your use case on the left, the orchestration preview will show here.',
  187. loading: 'Orchestrating the application for you...',
  188. overwriteTitle: 'Override existing configuration?',
  189. overwriteMessage: 'Applying this orchestration will override existing configuration.',
  190. },
  191. resetConfig: {
  192. title: 'Confirm reset?',
  193. message:
  194. 'Reset discards changes, restoring the last published configuration.',
  195. },
  196. errorMessage: {
  197. nameOfKeyRequired: 'name of the key: {{key}} required',
  198. valueOfVarRequired: '{{key}} value can not be empty',
  199. queryRequired: 'Request text is required.',
  200. waitForResponse:
  201. 'Please wait for the response to the previous message to complete.',
  202. waitForBatchResponse:
  203. 'Please wait for the response to the batch task to complete.',
  204. notSelectModel: 'Please choose a model',
  205. },
  206. chatSubTitle: 'Pre Prompt',
  207. completionSubTitle: 'Prefix Prompt',
  208. promptTip:
  209. 'Prompts guide AI responses with instructions and constraints. Insert variables like {{input}}. This prompt won\'t be visible to users.',
  210. formattingChangedTitle: 'Formatting changed',
  211. formattingChangedText:
  212. 'Modifying the formatting will reset the debug area, are you sure?',
  213. variableTitle: 'Variables',
  214. variableTip:
  215. 'Users fill variables in a form, automatically replacing variables in the prompt.',
  216. notSetVar: 'Variables allow users to introduce prompt words or opening remarks when filling out forms. You can try entering "{{input}}" in the prompt words.',
  217. autoAddVar: 'Undefined variables referenced in pre-prompt, are you want to add them in user input form?',
  218. variableTable: {
  219. key: 'Variable Key',
  220. name: 'User Input Field Name',
  221. optional: 'Optional',
  222. type: 'Input Type',
  223. action: 'Actions',
  224. typeString: 'String',
  225. typeSelect: 'Select',
  226. },
  227. varKeyError: {
  228. canNoBeEmpty: 'Variable key can not be empty',
  229. tooLong: 'Variable key: {{key}} too length. Can not be longer then 30 characters',
  230. notValid: 'Variable key: {{key}} is invalid. Can only contain letters, numbers, and underscores',
  231. notStartWithNumber: 'Variable key: {{key}} can not start with a number',
  232. keyAlreadyExists: 'Variable key: :{{key}} already exists',
  233. },
  234. otherError: {
  235. promptNoBeEmpty: 'Prompt can not be empty',
  236. historyNoBeEmpty: 'Conversation history must be set in the prompt',
  237. queryNoBeEmpty: 'Query must be set in the prompt',
  238. },
  239. variableConig: {
  240. modalTitle: 'Field settings',
  241. description: 'Setting for variable {{varName}}',
  242. fieldType: 'Field type',
  243. string: 'Short Text',
  244. paragraph: 'Paragraph',
  245. select: 'Select',
  246. notSet: 'Not set, try typing {{input}} in the prefix prompt',
  247. stringTitle: 'Form text box options',
  248. maxLength: 'Max length',
  249. options: 'Options',
  250. addOption: 'Add option',
  251. },
  252. openingStatement: {
  253. title: 'Opening remarks',
  254. add: 'Add',
  255. writeOpner: 'Write remarks',
  256. placeholder: 'Write your remarks message here',
  257. noDataPlaceHolder:
  258. 'Starting the conversation with the user can help AI establish a closer connection with them in conversational applications.',
  259. varTip: 'You can use variables, try type {{variable}}',
  260. tooShort: 'At least 20 words of initial prompt are required to generate an opening remarks for the conversation.',
  261. notIncludeKey: 'The initial prompt does not include the variable: {{key}}. Please add it to the initial prompt.',
  262. },
  263. modelConfig: {
  264. model: 'Model',
  265. setTone: 'Set tone of responses',
  266. title: 'Model and Parameters',
  267. modeType: {
  268. chat: 'Chat',
  269. completion: 'Complete',
  270. },
  271. },
  272. inputs: {
  273. title: 'Debug and Preview',
  274. noPrompt: 'Try write some prompt in pre-prompt input',
  275. userInputField: 'User Input Field',
  276. noVar: 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started.',
  277. chatVarTip:
  278. 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started',
  279. completionVarTip:
  280. 'Fill in the value of the variable, which will be automatically replaced in the prompt words every time a question is submitted.',
  281. previewTitle: 'Prompt preview',
  282. queryTitle: 'Query content',
  283. queryPlaceholder: 'Please enter the request text.',
  284. run: 'RUN',
  285. },
  286. result: 'Output Text',
  287. datasetConfig: {
  288. params: 'Params',
  289. top_k: 'Top K',
  290. top_kTip: 'Used to filter segments that are most similar to user questions. The system will also dynamically adjust the value of Top K, according to max_tokens of the selected model.',
  291. score_threshold: 'Score Threshold',
  292. score_thresholdTip: 'Used to set the similarity threshold for segment filtering.',
  293. },
  294. }
  295. export default translation