app-overview.ts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. const translation = {
  2. welcome: {
  3. firstStepTip: 'To get started,',
  4. enterKeyTip: 'enter your OpenAI API Key below',
  5. getKeyTip: 'Get your API Key from OpenAI dashboard',
  6. placeholder: 'Your OpenAI API Key (eg.sk-xxxx)',
  7. },
  8. apiKeyInfo: {
  9. cloud: {
  10. trial: {
  11. title: 'You are using the {{providerName}} trial quota.',
  12. description: 'The trial quota is provided for your testing purposes. Before the trial quota is exhausted, please set up your own model provider or purchase additional quota.',
  13. },
  14. exhausted: {
  15. title: 'Your trial quota have been used up, please set up your APIKey.',
  16. description: 'You have exhausted your trial quota. Please set up your own model provider or purchase additional quota.',
  17. },
  18. },
  19. selfHost: {
  20. title: {
  21. row1: 'To get started,',
  22. row2: 'setup your model provider first.',
  23. },
  24. },
  25. callTimes: 'Call times',
  26. usedToken: 'Used token',
  27. setAPIBtn: 'Go to setup model provider',
  28. tryCloud: 'Or try the cloud version of Dify with free quote',
  29. },
  30. overview: {
  31. title: 'Overview',
  32. appInfo: {
  33. explanation: 'Ready-to-use AI WebApp',
  34. accessibleAddress: 'Public URL',
  35. preview: 'Preview',
  36. regenerate: 'Regenerate',
  37. regenerateNotice: 'Do you want to regenerate the public URL?',
  38. preUseReminder: 'Please enable WebApp before continuing.',
  39. settings: {
  40. entry: 'Settings',
  41. title: 'WebApp Settings',
  42. webName: 'WebApp Name',
  43. webDesc: 'WebApp Description',
  44. webDescTip: 'This text will be displayed on the client side, providing basic guidance on how to use the application',
  45. webDescPlaceholder: 'Enter the description of the WebApp',
  46. language: 'Language',
  47. workflow: {
  48. title: 'Workflow',
  49. subTitle: 'Workflow Details',
  50. show: 'Show',
  51. hide: 'Hide',
  52. showDesc: 'Show or hide workflow details in WebApp',
  53. },
  54. chatColorTheme: 'Chat color theme',
  55. chatColorThemeDesc: 'Set the color theme of the chatbot',
  56. chatColorThemeInverted: 'Inverted',
  57. invalidHexMessage: 'Invalid hex value',
  58. sso: {
  59. label: 'SSO Authentication',
  60. title: 'WebApp SSO',
  61. description: 'All users are required to login with SSO before using WebApp',
  62. tooltip: 'Contact the administrator to enable WebApp SSO',
  63. },
  64. more: {
  65. entry: 'Show more settings',
  66. copyright: 'Copyright',
  67. copyRightPlaceholder: 'Enter the name of the author or organization',
  68. privacyPolicy: 'Privacy Policy',
  69. privacyPolicyPlaceholder: 'Enter the privacy policy link',
  70. privacyPolicyTip: 'Helps visitors understand the data the application collects, see Dify\'s <privacyPolicyLink>Privacy Policy</privacyPolicyLink>.',
  71. customDisclaimer: 'Custom Disclaimer',
  72. customDisclaimerPlaceholder: 'Enter the custom disclaimer text',
  73. customDisclaimerTip: 'Custom disclaimer text will be displayed on the client side, providing additional information about the application',
  74. },
  75. },
  76. embedded: {
  77. entry: 'Embedded',
  78. title: 'Embed on website',
  79. explanation: 'Choose the way to embed chat app to your website',
  80. iframe: 'To add the chat app any where on your website, add this iframe to your html code.',
  81. scripts: 'To add a chat app to the bottom right of your website add this code to your html.',
  82. chromePlugin: 'Install Dify Chatbot Chrome Extension',
  83. copied: 'Copied',
  84. copy: 'Copy',
  85. },
  86. qrcode: {
  87. title: 'Link QR Code',
  88. scan: 'Scan To Share',
  89. download: 'Download QR Code',
  90. },
  91. customize: {
  92. way: 'way',
  93. entry: 'Customize',
  94. title: 'Customize AI WebApp',
  95. explanation: 'You can customize the frontend of the Web App to fit your scenario and style needs.',
  96. way1: {
  97. name: 'Fork the client code, modify it and deploy to Vercel (recommended)',
  98. step1: 'Fork the client code and modify it',
  99. step1Tip: 'Click here to fork the source code into your GitHub account and modify the code',
  100. step1Operation: 'Dify-WebClient',
  101. step2: 'Deploy to Vercel',
  102. step2Tip: 'Click here to import the repository into Vercel and deploy',
  103. step2Operation: 'Import repository',
  104. step3: 'Configure environment variables',
  105. step3Tip: 'Add the following environment variables in Vercel',
  106. },
  107. way2: {
  108. name: 'Write client-side code to call the API and deploy it to a server',
  109. operation: 'Documentation',
  110. },
  111. },
  112. },
  113. apiInfo: {
  114. title: 'Backend Service API',
  115. explanation: 'Easily integrated into your application',
  116. accessibleAddress: 'Service API Endpoint',
  117. doc: 'API Reference',
  118. },
  119. status: {
  120. running: 'In Service',
  121. disable: 'Disabled',
  122. },
  123. },
  124. analysis: {
  125. title: 'Analysis',
  126. ms: 'ms',
  127. tokenPS: 'Token/s',
  128. totalMessages: {
  129. title: 'Total Messages',
  130. explanation: 'Daily AI interactions count.',
  131. },
  132. totalConversations: {
  133. title: 'Total Conversations',
  134. explanation: 'Daily AI conversations count; prompt engineering/debugging excluded.',
  135. },
  136. activeUsers: {
  137. title: 'Active Users',
  138. explanation: 'Unique users engaging in Q&A with AI; prompt engineering/debugging excluded.',
  139. },
  140. tokenUsage: {
  141. title: 'Token Usage',
  142. explanation: 'Reflects the daily token usage of the language model for the application, useful for cost control purposes.',
  143. consumed: 'Consumed',
  144. },
  145. avgSessionInteractions: {
  146. title: 'Avg. Session Interactions',
  147. explanation: 'Continuous user-AI communication count; for conversation-based apps.',
  148. },
  149. avgUserInteractions: {
  150. title: 'Avg. User Interactions',
  151. explanation: 'Reflects the daily usage frequency of users. This metric reflects user stickiness.',
  152. },
  153. userSatisfactionRate: {
  154. title: 'User Satisfaction Rate',
  155. explanation: 'The number of likes per 1,000 messages. This indicates the proportion of answers that users are highly satisfied with.',
  156. },
  157. avgResponseTime: {
  158. title: 'Avg. Response Time',
  159. explanation: 'Time (ms) for AI to process/respond; for text-based apps.',
  160. },
  161. tps: {
  162. title: 'Token Output Speed',
  163. explanation: 'Measure the performance of the LLM. Count the Tokens output speed of LLM from the beginning of the request to the completion of the output.',
  164. },
  165. },
  166. }
  167. export default translation