en.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. Typing: "Typing…",
  23. Input: (submitKey: string) => {
  24. var inputHints = `Type something and press ${submitKey} to send`;
  25. if (submitKey === String(SubmitKey.Enter)) {
  26. inputHints += ", press Shift + Enter to newline";
  27. }
  28. return inputHints;
  29. },
  30. Send: "Send",
  31. },
  32. Export: {
  33. Title: "All Messages",
  34. Copy: "Copy All",
  35. Download: "Download",
  36. },
  37. Memory: {
  38. Title: "Memory Prompt",
  39. EmptyContent: "Nothing yet.",
  40. Copy: "Copy All",
  41. },
  42. Home: {
  43. NewChat: "New Chat",
  44. DeleteChat: "Confirm to delete the selected conversation?",
  45. },
  46. Settings: {
  47. Title: "Settings",
  48. SubTitle: "All Settings",
  49. Actions: {
  50. ClearAll: "Clear All Data",
  51. ResetAll: "Reset All Settings",
  52. Close: "Close",
  53. },
  54. Lang: {
  55. Name: "语言",
  56. Options: {
  57. cn: "简体中文",
  58. en: "English",
  59. tw: "繁體中文",
  60. },
  61. },
  62. Avatar: "Avatar",
  63. FontSize: {
  64. Title: "Font Size",
  65. SubTitle: "Adjust font size of chat content",
  66. },
  67. Update: {
  68. Version: (x: string) => `Version: ${x}`,
  69. IsLatest: "Latest version",
  70. CheckUpdate: "Check Update",
  71. IsChecking: "Checking update...",
  72. FoundUpdate: (x: string) => `Found new version: ${x}`,
  73. GoToUpdate: "Update",
  74. },
  75. SendKey: "Send Key",
  76. Theme: "Theme",
  77. TightBorder: "Tight Border",
  78. Prompt: {
  79. Disable: {
  80. Title: "Disable auto-completion",
  81. SubTitle: "After disabling, auto-completion will not be available",
  82. },
  83. List: "Prompt List",
  84. ListCount: (builtin: number, custom: number) =>
  85. `${builtin} built-in, ${custom} user-defined`,
  86. Edit: "Edit",
  87. },
  88. HistoryCount: {
  89. Title: "Attached Messages Count",
  90. SubTitle: "Number of sent messages attached per request",
  91. },
  92. CompressThreshold: {
  93. Title: "History Compression Threshold",
  94. SubTitle:
  95. "Will compress if uncompressed messages length exceeds the value",
  96. },
  97. Token: {
  98. Title: "API Key",
  99. SubTitle: "Use your key to ignore access code limit",
  100. Placeholder: "OpenAI API Key",
  101. },
  102. AccessCode: {
  103. Title: "Access Code",
  104. SubTitle: "Access control enabled",
  105. Placeholder: "Need Access Code",
  106. },
  107. Model: "Model",
  108. Temperature: {
  109. Title: "Temperature",
  110. SubTitle: "A larger value makes the more random output",
  111. },
  112. MaxTokens: {
  113. Title: "Max Tokens",
  114. SubTitle: "Maximum length of input tokens and generated tokens",
  115. },
  116. PresencePenlty: {
  117. Title: "Presence Penalty",
  118. SubTitle:
  119. "A larger value increases the likelihood to talk about new topics",
  120. },
  121. },
  122. Store: {
  123. DefaultTopic: "New Conversation",
  124. BotHello: "Hello! How can I assist you today?",
  125. Error: "Something went wrong, please try again later.",
  126. Prompt: {
  127. History: (content: string) =>
  128. "This is a summary of the chat history between the AI and the user as a recap: " +
  129. content,
  130. Topic:
  131. "Provide a brief topic of the sentence without explanation. If there is no topic, return 'Chitchat'.",
  132. Summarize:
  133. "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
  134. },
  135. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  136. },
  137. Copy: {
  138. Success: "Copied to clipboard",
  139. Failed: "Copy failed, please grant permission to access clipboard",
  140. },
  141. };
  142. export default en;