en.ts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. import { SubmitKey } from "../store/app";
  2. import type { LocaleType } from "./index";
  3. const en: LocaleType = {
  4. WIP: "WIP...",
  5. Error: {
  6. Unauthorized:
  7. "Unauthorized access, please enter access code in settings page.",
  8. },
  9. ChatItem: {
  10. ChatItemCount: (count: number) => `${count} messages`,
  11. },
  12. Chat: {
  13. SubTitle: (count: number) => `${count} messages with ChatGPT`,
  14. Actions: {
  15. ChatList: "Go To Chat List",
  16. CompressedHistory: "Compressed History Memory Prompt",
  17. Export: "Export All Messages as Markdown",
  18. Copy: "Copy",
  19. Stop: "Stop",
  20. Retry: "Retry",
  21. Delete: "Delete",
  22. },
  23. Rename: "Rename Chat",
  24. Typing: "Typing…",
  25. Input: (submitKey: string) => {
  26. var inputHints = `${submitKey} to send`;
  27. if (submitKey === String(SubmitKey.Enter)) {
  28. inputHints += ", Shift + Enter to wrap";
  29. }
  30. return inputHints + ", / to search prompts";
  31. },
  32. Send: "Send",
  33. },
  34. Export: {
  35. Title: "All Messages",
  36. Copy: "Copy All",
  37. Download: "Download",
  38. MessageFromYou: "Message From You",
  39. MessageFromChatGPT: "Message From ChatGPT",
  40. },
  41. Memory: {
  42. Title: "Memory Prompt",
  43. EmptyContent: "Nothing yet.",
  44. Send: "Send Memory",
  45. Copy: "Copy Memory",
  46. Reset: "Reset Session",
  47. ResetConfirm:
  48. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  49. },
  50. Home: {
  51. NewChat: "New Chat",
  52. DeleteChat: "Confirm to delete the selected conversation?",
  53. DeleteToast: "Chat Deleted",
  54. Revert: "Revert",
  55. },
  56. Settings: {
  57. Title: "Settings",
  58. SubTitle: "All Settings",
  59. Actions: {
  60. ClearAll: "Clear All Data",
  61. ResetAll: "Reset All Settings",
  62. Close: "Close",
  63. ConfirmResetAll: {
  64. Confirm: "Are you sure you want to reset all configurations?",
  65. },
  66. ConfirmClearAll: {
  67. Confirm: "Are you sure you want to reset all chat?",
  68. },
  69. },
  70. Lang: {
  71. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  72. Options: {
  73. cn: "简体中文",
  74. en: "English",
  75. tw: "繁體中文",
  76. es: "Español",
  77. it: "Italiano",
  78. tr: "Türkçe",
  79. jp: "日本語",
  80. de: "Deutsch",
  81. cs: "Čeština",
  82. },
  83. },
  84. Avatar: "Avatar",
  85. FontSize: {
  86. Title: "Font Size",
  87. SubTitle: "Adjust font size of chat content",
  88. },
  89. Update: {
  90. Version: (x: string) => `Version: ${x}`,
  91. IsLatest: "Latest version",
  92. CheckUpdate: "Check Update",
  93. IsChecking: "Checking update...",
  94. FoundUpdate: (x: string) => `Found new version: ${x}`,
  95. GoToUpdate: "Update",
  96. },
  97. SendKey: "Send Key",
  98. Theme: "Theme",
  99. TightBorder: "Tight Border",
  100. SendPreviewBubble: "Send Preview Bubble",
  101. Prompt: {
  102. Disable: {
  103. Title: "Disable auto-completion",
  104. SubTitle: "Input / to trigger auto-completion",
  105. },
  106. List: "Prompt List",
  107. ListCount: (builtin: number, custom: number) =>
  108. `${builtin} built-in, ${custom} user-defined`,
  109. Edit: "Edit",
  110. Modal: {
  111. Title: "Prompt List",
  112. Add: "Add One",
  113. Search: "Search Prompts",
  114. },
  115. },
  116. HistoryCount: {
  117. Title: "Attached Messages Count",
  118. SubTitle: "Number of sent messages attached per request",
  119. },
  120. CompressThreshold: {
  121. Title: "History Compression Threshold",
  122. SubTitle:
  123. "Will compress if uncompressed messages length exceeds the value",
  124. },
  125. Token: {
  126. Title: "API Key",
  127. SubTitle: "Use your key to ignore access code limit",
  128. Placeholder: "OpenAI API Key",
  129. },
  130. Usage: {
  131. Title: "Account Balance",
  132. SubTitle(used: any, total: any) {
  133. return `Used this month $${used}, subscription $${total}`;
  134. },
  135. IsChecking: "Checking...",
  136. Check: "Check",
  137. NoAccess: "Enter API Key to check balance",
  138. },
  139. AccessCode: {
  140. Title: "Access Code",
  141. SubTitle: "Access control enabled",
  142. Placeholder: "Need Access Code",
  143. },
  144. Model: "Model",
  145. Temperature: {
  146. Title: "Temperature",
  147. SubTitle: "A larger value makes the more random output",
  148. },
  149. MaxTokens: {
  150. Title: "Max Tokens",
  151. SubTitle: "Maximum length of input tokens and generated tokens",
  152. },
  153. PresencePenlty: {
  154. Title: "Presence Penalty",
  155. SubTitle:
  156. "A larger value increases the likelihood to talk about new topics",
  157. },
  158. },
  159. Store: {
  160. DefaultTopic: "New Conversation",
  161. BotHello: "Hello! How can I assist you today?",
  162. Error: "Something went wrong, please try again later.",
  163. Prompt: {
  164. History: (content: string) =>
  165. "This is a summary of the chat history between the AI and the user as a recap: " +
  166. content,
  167. Topic:
  168. "Please generate a four to five word title summarizing our conversation without any lead-in, punctuation, quotation marks, periods, symbols, or additional text. Remove enclosing quotation marks.",
  169. Summarize:
  170. "Summarize our discussion briefly in 200 words or less to use as a prompt for future context.",
  171. },
  172. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  173. },
  174. Copy: {
  175. Success: "Copied to clipboard",
  176. Failed: "Copy failed, please grant permission to access clipboard",
  177. },
  178. Context: {
  179. Toast: (x: any) => `With ${x} contextual prompts`,
  180. Edit: "Contextual and Memory Prompts",
  181. Add: "Add One",
  182. },
  183. };
  184. export default en;