en.ts 4.8 KB

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