en.ts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. import { SubmitKey } from "../store/config";
  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. },
  82. },
  83. Avatar: "Avatar",
  84. FontSize: {
  85. Title: "Font Size",
  86. SubTitle: "Adjust font size of chat content",
  87. },
  88. Update: {
  89. Version: (x: string) => `Version: ${x}`,
  90. IsLatest: "Latest version",
  91. CheckUpdate: "Check Update",
  92. IsChecking: "Checking update...",
  93. FoundUpdate: (x: string) => `Found new version: ${x}`,
  94. GoToUpdate: "Update",
  95. },
  96. SendKey: "Send Key",
  97. Theme: "Theme",
  98. TightBorder: "Tight Border",
  99. SendPreviewBubble: "Send Preview Bubble",
  100. Prompt: {
  101. Disable: {
  102. Title: "Disable auto-completion",
  103. SubTitle: "Input / to trigger auto-completion",
  104. },
  105. List: "Prompt List",
  106. ListCount: (builtin: number, custom: number) =>
  107. `${builtin} built-in, ${custom} user-defined`,
  108. Edit: "Edit",
  109. Modal: {
  110. Title: "Prompt List",
  111. Add: "Add One",
  112. Search: "Search Prompts",
  113. },
  114. },
  115. HistoryCount: {
  116. Title: "Attached Messages Count",
  117. SubTitle: "Number of sent messages attached per request",
  118. },
  119. CompressThreshold: {
  120. Title: "History Compression Threshold",
  121. SubTitle:
  122. "Will compress if uncompressed messages length exceeds the value",
  123. },
  124. Token: {
  125. Title: "API Key",
  126. SubTitle: "Use your key to ignore access code limit",
  127. Placeholder: "OpenAI API Key",
  128. },
  129. Usage: {
  130. Title: "Account Balance",
  131. SubTitle(used: any, total: any) {
  132. return `Used this month $${used}, subscription $${total}`;
  133. },
  134. IsChecking: "Checking...",
  135. Check: "Check",
  136. NoAccess: "Enter API Key to check balance",
  137. },
  138. AccessCode: {
  139. Title: "Access Code",
  140. SubTitle: "Access control enabled",
  141. Placeholder: "Need Access Code",
  142. },
  143. Model: "Model",
  144. Temperature: {
  145. Title: "Temperature",
  146. SubTitle: "A larger value makes the more random output",
  147. },
  148. MaxTokens: {
  149. Title: "Max Tokens",
  150. SubTitle: "Maximum length of input tokens and generated tokens",
  151. },
  152. PresencePenlty: {
  153. Title: "Presence Penalty",
  154. SubTitle:
  155. "A larger value increases the likelihood to talk about new topics",
  156. },
  157. },
  158. Store: {
  159. DefaultTopic: "New Conversation",
  160. BotHello: "Hello! How can I assist you today?",
  161. Error: "Something went wrong, please try again later.",
  162. Prompt: {
  163. History: (content: string) =>
  164. "This is a summary of the chat history between the AI and the user as a recap: " +
  165. content,
  166. Topic:
  167. "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.",
  168. Summarize:
  169. "Summarize our discussion briefly in 200 words or less to use as a prompt for future context.",
  170. },
  171. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  172. },
  173. Copy: {
  174. Success: "Copied to clipboard",
  175. Failed: "Copy failed, please grant permission to access clipboard",
  176. },
  177. Context: {
  178. Toast: (x: any) => `With ${x} contextual prompts`,
  179. Edit: "Contextual and Memory Prompts",
  180. Add: "Add One",
  181. },
  182. };
  183. export default en;