app-debug.en.ts 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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. },
  20. operation: {
  21. applyConfig: 'Publish',
  22. resetConfig: 'Reset',
  23. addFeature: 'Add Feature',
  24. automatic: 'Automatic',
  25. stopResponding: 'Stop responding',
  26. agree: 'like',
  27. disagree: 'dislike',
  28. cancelAgree: 'Cancel like',
  29. cancelDisagree: 'Cancel dislike',
  30. userAction: 'User ',
  31. },
  32. notSetAPIKey: {
  33. title: 'LLM provider key has not been set',
  34. trailFinished: 'Trail finished',
  35. description: 'The LLM provider key has not been set, and it needs to be set before debugging.',
  36. settingBtn: 'Go to settings',
  37. },
  38. trailUseGPT4Info: {
  39. title: 'Does not support gpt-4 now',
  40. description: 'Use gpt-4, please set API Key.',
  41. },
  42. feature: {
  43. groupChat: {
  44. title: 'Chat enhance',
  45. description: 'Add pre-conversation settings for apps can enhance user experience.',
  46. },
  47. groupExperience: {
  48. title: 'Experience enhance',
  49. },
  50. conversationOpener: {
  51. title: 'Conversation remakers',
  52. description: 'In a chat app, the first sentence that the AI actively speaks to the user is usually used as a welcome.',
  53. },
  54. suggestedQuestionsAfterAnswer: {
  55. title: 'Follow-up',
  56. description: 'Setting up next questions suggestion can give users a better chat.',
  57. resDes: '3 suggestions for user next question.',
  58. tryToAsk: 'Try to ask',
  59. },
  60. moreLikeThis: {
  61. title: 'More like this',
  62. description: 'Generate multiple texts at once, and then edit and continue to generate',
  63. generateNumTip: 'Number of each generated times',
  64. tip: 'Using this feature will incur additional tokens overhead',
  65. },
  66. speechToText: {
  67. title: 'Speech to Text',
  68. description: 'Once enabled, you can use voice input.',
  69. resDes: 'Voice input is enabled',
  70. },
  71. citation: {
  72. title: 'Citations and Attributions',
  73. description: 'Once enabled, show source document and attributed section of the generated content.',
  74. resDes: 'Citations and Attributions is enabled',
  75. },
  76. dataSet: {
  77. title: 'Context',
  78. noData: 'You can import datasets as context',
  79. words: 'Words',
  80. textBlocks: 'Text Blocks',
  81. selectTitle: 'Select reference dataset',
  82. selected: 'Datasets selected',
  83. noDataSet: 'No dataset found',
  84. toCreate: 'Go to create',
  85. notSupportSelectMulti: 'Currently only support one dataset',
  86. queryVariable: {
  87. title: 'Query variable',
  88. tip: 'This variable will be used as the query input for context retrieval, obtaining context information related to the input of this variable.',
  89. choosePlaceholder: 'Choose query variable',
  90. noVar: 'No variables',
  91. noVarTip: 'please create a variable under the Variables section',
  92. unableToQueryDataSet: 'Unable to query the dataset',
  93. unableToQueryDataSetTip: 'Unable to query the dataset successfully, please choose a context query variable in the context section.',
  94. ok: 'OK',
  95. contextVarNotEmpty: 'context query variable can not be empty',
  96. deleteContextVarTitle: 'Delete variable “{{varName}}”?',
  97. 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.',
  98. },
  99. },
  100. conversationHistory: {
  101. title: 'Conversation History',
  102. description: 'Set prefix names for conversation roles',
  103. tip: 'The Conversation History is not enabled, please add <histories> in the prompt above.',
  104. learnMore: 'Learn more',
  105. editModal: {
  106. title: 'Edit Conversation Role Names',
  107. userPrefix: 'User prefix',
  108. assistantPrefix: 'Assistant prefix',
  109. },
  110. },
  111. },
  112. automatic: {
  113. title: 'Automated application orchestration',
  114. description: 'Describe your scenario, Dify will orchestrate an application for you.',
  115. intendedAudience: 'Who is the intended audience?',
  116. intendedAudiencePlaceHolder: 'e.g. Student',
  117. solveProblem: 'What problems do they hope AI can solve for them?',
  118. solveProblemPlaceHolder: 'e.g. Assessing academic performance',
  119. generate: 'Generate',
  120. audiencesRequired: 'Audiences required',
  121. problemRequired: 'Problem required',
  122. resTitle: 'We have orchestrated the following application for you.',
  123. apply: 'Apply this orchestration',
  124. noData: 'Describe your use case on the left, the orchestration preview will show here.',
  125. loading: 'Orchestrating the application for you...',
  126. overwriteTitle: 'Override existing configuration?',
  127. overwriteMessage: 'Applying this orchestration will override existing configuration.',
  128. },
  129. resetConfig: {
  130. title: 'Confirm reset?',
  131. message:
  132. 'Reset discards changes, restoring the last published configuration.',
  133. },
  134. errorMessage: {
  135. nameOfKeyRequired: 'name of the key: {{key}} required',
  136. valueOfVarRequired: '{{key}} value can not be empty',
  137. queryRequired: 'Request text is required.',
  138. waitForResponse:
  139. 'Please wait for the response to the previous message to complete.',
  140. waitForBatchResponse:
  141. 'Please wait for the response to the batch task to complete.',
  142. notSelectModel: 'Please choose a model',
  143. },
  144. chatSubTitle: 'Pre Prompt',
  145. completionSubTitle: 'Prefix Prompt',
  146. promptTip:
  147. 'Prompts guide AI responses with instructions and constraints. Insert variables like {{input}}. This prompt won\'t be visible to users.',
  148. formattingChangedTitle: 'Formatting changed',
  149. formattingChangedText:
  150. 'Modifying the formatting will reset the debug area, are you sure?',
  151. variableTitle: 'Variables',
  152. variableTip:
  153. 'Users fill variables in a form, automatically replacing variables in the prompt.',
  154. notSetVar: 'Variables allow users to introduce prompt words or opening remarks when filling out forms. You can try entering "{{input}}" in the prompt words.',
  155. autoAddVar: 'Undefined variables referenced in pre-prompt, are you want to add them in user input form?',
  156. variableTable: {
  157. key: 'Variable Key',
  158. name: 'User Input Field Name',
  159. optional: 'Optional',
  160. type: 'Input Type',
  161. action: 'Actions',
  162. typeString: 'String',
  163. typeSelect: 'Select',
  164. },
  165. varKeyError: {
  166. canNoBeEmpty: 'Variable key can not be empty',
  167. tooLong: 'Variable key: {{key}} too length. Can not be longer then 30 characters',
  168. notValid: 'Variable key: {{key}} is invalid. Can only contain letters, numbers, and underscores',
  169. notStartWithNumber: 'Variable key: {{key}} can not start with a number',
  170. keyAlreadyExists: 'Variable key: :{{key}} already exists',
  171. },
  172. otherError: {
  173. promptNoBeEmpty: 'Prompt can not be empty',
  174. historyNoBeEmpty: 'Conversation history must be set in the prompt',
  175. queryNoBeEmpty: 'Query must be set in the prompt',
  176. },
  177. variableConig: {
  178. modalTitle: 'Field settings',
  179. description: 'Setting for variable {{varName}}',
  180. fieldType: 'Field type',
  181. string: 'Short Text',
  182. paragraph: 'Paragraph',
  183. select: 'Select',
  184. notSet: 'Not set, try typing {{input}} in the prefix prompt',
  185. stringTitle: 'Form text box options',
  186. maxLength: 'Max length',
  187. options: 'Options',
  188. addOption: 'Add option',
  189. },
  190. openingStatement: {
  191. title: 'Opening remarks',
  192. add: 'Add',
  193. writeOpner: 'Write remarks',
  194. placeholder: 'Write your remarks message here',
  195. noDataPlaceHolder:
  196. 'Starting the conversation with the user can help AI establish a closer connection with them in conversational applications.',
  197. varTip: 'You can use variables, try type {{variable}}',
  198. tooShort: 'At least 20 words of initial prompt are required to generate an opening remarks for the conversation.',
  199. notIncludeKey: 'The initial prompt does not include the variable: {{key}}. Please add it to the initial prompt.',
  200. },
  201. modelConfig: {
  202. model: 'Model',
  203. setTone: 'Set tone of responses',
  204. title: 'Model and Parameters',
  205. modeType: {
  206. chat: 'Chat',
  207. completion: 'Complete',
  208. },
  209. },
  210. inputs: {
  211. title: 'Debug and Preview',
  212. noPrompt: 'Try write some prompt in pre-prompt input',
  213. userInputField: 'User Input Field',
  214. noVar: 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started.',
  215. chatVarTip:
  216. 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started',
  217. completionVarTip:
  218. 'Fill in the value of the variable, which will be automatically replaced in the prompt words every time a question is submitted.',
  219. previewTitle: 'Prompt preview',
  220. queryTitle: 'Query content',
  221. queryPlaceholder: 'Please enter the request text.',
  222. run: 'RUN',
  223. },
  224. result: 'Output Text',
  225. datasetConfig: {
  226. params: 'Params',
  227. top_k: 'Top K',
  228. 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.',
  229. score_threshold: 'Score Threshold',
  230. score_thresholdTip: 'Used to set the similarity threshold for segment filtering.',
  231. },
  232. }
  233. export default translation