app-debug.en.ts 8.1 KB

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