app-debug.en.ts 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. conversationHistory: {
  102. title: 'Conversation History',
  103. description: 'Set prefix names for conversation roles',
  104. tip: 'The Conversation History is not enabled, please add <histories> in the prompt above.',
  105. learnMore: 'Learn more',
  106. editModal: {
  107. title: 'Edit Conversation Role Names',
  108. userPrefix: 'User prefix',
  109. assistantPrefix: 'Assistant prefix',
  110. },
  111. },
  112. },
  113. automatic: {
  114. title: 'Automated application orchestration',
  115. description: 'Describe your scenario, Dify will orchestrate an application for you.',
  116. intendedAudience: 'Who is the intended audience?',
  117. intendedAudiencePlaceHolder: 'e.g. Student',
  118. solveProblem: 'What problems do they hope AI can solve for them?',
  119. solveProblemPlaceHolder: 'e.g. Assessing academic performance',
  120. generate: 'Generate',
  121. audiencesRequired: 'Audiences required',
  122. problemRequired: 'Problem required',
  123. resTitle: 'We have orchestrated the following application for you.',
  124. apply: 'Apply this orchestration',
  125. noData: 'Describe your use case on the left, the orchestration preview will show here.',
  126. loading: 'Orchestrating the application for you...',
  127. overwriteTitle: 'Override existing configuration?',
  128. overwriteMessage: 'Applying this orchestration will override existing configuration.',
  129. },
  130. resetConfig: {
  131. title: 'Confirm reset?',
  132. message:
  133. 'Reset discards changes, restoring the last published configuration.',
  134. },
  135. errorMessage: {
  136. nameOfKeyRequired: 'name of the key: {{key}} required',
  137. valueOfVarRequired: '{{key}} value can not be empty',
  138. queryRequired: 'Request text is required.',
  139. waitForResponse:
  140. 'Please wait for the response to the previous message to complete.',
  141. waitForBatchResponse:
  142. 'Please wait for the response to the batch task to complete.',
  143. notSelectModel: 'Please choose a model',
  144. },
  145. chatSubTitle: 'Pre Prompt',
  146. completionSubTitle: 'Prefix Prompt',
  147. promptTip:
  148. 'Prompts guide AI responses with instructions and constraints. Insert variables like {{input}}. This prompt won\'t be visible to users.',
  149. formattingChangedTitle: 'Formatting changed',
  150. formattingChangedText:
  151. 'Modifying the formatting will reset the debug area, are you sure?',
  152. variableTitle: 'Variables',
  153. variableTip:
  154. 'Users fill variables in a form, automatically replacing variables in the prompt.',
  155. notSetVar: 'Variables allow users to introduce prompt words or opening remarks when filling out forms. You can try entering "{{input}}" in the prompt words.',
  156. autoAddVar: 'Undefined variables referenced in pre-prompt, are you want to add them in user input form?',
  157. variableTable: {
  158. key: 'Variable Key',
  159. name: 'User Input Field Name',
  160. optional: 'Optional',
  161. type: 'Input Type',
  162. action: 'Actions',
  163. typeString: 'String',
  164. typeSelect: 'Select',
  165. },
  166. varKeyError: {
  167. canNoBeEmpty: 'Variable key can not be empty',
  168. tooLong: 'Variable key: {{key}} too length. Can not be longer then 30 characters',
  169. notValid: 'Variable key: {{key}} is invalid. Can only contain letters, numbers, and underscores',
  170. notStartWithNumber: 'Variable key: {{key}} can not start with a number',
  171. keyAlreadyExists: 'Variable key: :{{key}} already exists',
  172. },
  173. otherError: {
  174. promptNoBeEmpty: 'Prompt can not be empty',
  175. historyNoBeEmpty: 'Conversation history must be set in the prompt',
  176. queryNoBeEmpty: 'Query must be set in the prompt',
  177. },
  178. variableConig: {
  179. modalTitle: 'Field settings',
  180. description: 'Setting for variable {{varName}}',
  181. fieldType: 'Field type',
  182. string: 'Short Text',
  183. paragraph: 'Paragraph',
  184. select: 'Select',
  185. notSet: 'Not set, try typing {{input}} in the prefix prompt',
  186. stringTitle: 'Form text box options',
  187. maxLength: 'Max length',
  188. options: 'Options',
  189. addOption: 'Add option',
  190. },
  191. openingStatement: {
  192. title: 'Opening remarks',
  193. add: 'Add',
  194. writeOpner: 'Write remarks',
  195. placeholder: 'Write your remarks message here',
  196. noDataPlaceHolder:
  197. 'Starting the conversation with the user can help AI establish a closer connection with them in conversational applications.',
  198. varTip: 'You can use variables, try type {{variable}}',
  199. tooShort: 'At least 20 words of initial prompt are required to generate an opening remarks for the conversation.',
  200. notIncludeKey: 'The initial prompt does not include the variable: {{key}}. Please add it to the initial prompt.',
  201. },
  202. modelConfig: {
  203. model: 'Model',
  204. setTone: 'Set tone of responses',
  205. title: 'Model and Parameters',
  206. modeType: {
  207. chat: 'Chat',
  208. completion: 'Complete',
  209. },
  210. },
  211. inputs: {
  212. title: 'Debug and Preview',
  213. noPrompt: 'Try write some prompt in pre-prompt input',
  214. userInputField: 'User Input Field',
  215. noVar: 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started.',
  216. chatVarTip:
  217. 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started',
  218. completionVarTip:
  219. 'Fill in the value of the variable, which will be automatically replaced in the prompt words every time a question is submitted.',
  220. previewTitle: 'Prompt preview',
  221. queryTitle: 'Query content',
  222. queryPlaceholder: 'Please enter the request text.',
  223. run: 'RUN',
  224. },
  225. result: 'Output Text',
  226. datasetConfig: {
  227. params: 'Params',
  228. top_k: 'Top K',
  229. 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.',
  230. score_threshold: 'Score Threshold',
  231. score_thresholdTip: 'Used to set the similarity threshold for segment filtering.',
  232. },
  233. }
  234. export default translation