en.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. Prompt: {
  80. Disable: {
  81. Title: "Disable auto-completion",
  82. SubTitle: "Input / to trigger auto-completion",
  83. },
  84. List: "Prompt List",
  85. ListCount: (builtin: number, custom: number) =>
  86. `${builtin} built-in, ${custom} user-defined`,
  87. Edit: "Edit",
  88. },
  89. HistoryCount: {
  90. Title: "Attached Messages Count",
  91. SubTitle: "Number of sent messages attached per request",
  92. },
  93. CompressThreshold: {
  94. Title: "History Compression Threshold",
  95. SubTitle:
  96. "Will compress if uncompressed messages length exceeds the value",
  97. },
  98. Token: {
  99. Title: "API Key",
  100. SubTitle: "Use your key to ignore access code limit",
  101. Placeholder: "OpenAI API Key",
  102. },
  103. AccessCode: {
  104. Title: "Access Code",
  105. SubTitle: "Access control enabled",
  106. Placeholder: "Need Access Code",
  107. },
  108. Model: "Model",
  109. Temperature: {
  110. Title: "Temperature",
  111. SubTitle: "A larger value makes the more random output",
  112. },
  113. MaxTokens: {
  114. Title: "Max Tokens",
  115. SubTitle: "Maximum length of input tokens and generated tokens",
  116. },
  117. PresencePenlty: {
  118. Title: "Presence Penalty",
  119. SubTitle:
  120. "A larger value increases the likelihood to talk about new topics",
  121. },
  122. },
  123. Store: {
  124. DefaultTopic: "New Conversation",
  125. BotHello: "Hello! How can I assist you today?",
  126. Error: "Something went wrong, please try again later.",
  127. Prompt: {
  128. History: (content: string) =>
  129. "This is a summary of the chat history between the AI and the user as a recap: " +
  130. content,
  131. Topic:
  132. "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.",
  133. Summarize:
  134. "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
  135. },
  136. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  137. },
  138. Copy: {
  139. Success: "Copied to clipboard",
  140. Failed: "Copy failed, please grant permission to access clipboard",
  141. },
  142. };
  143. export default en;