en.ts 4.4 KB

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