en.ts 5.3 KB

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