en.ts 4.7 KB

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