en.ts 4.4 KB

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