en.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. Update: {
  64. Version: (x: string) => `Version: ${x}`,
  65. IsLatest: "Latest version",
  66. CheckUpdate: "Check Update",
  67. IsChecking: "Checking update...",
  68. FoundUpdate: (x: string) => `Found new version: ${x}`,
  69. GoToUpdate: "Update",
  70. },
  71. SendKey: "Send Key",
  72. Theme: "Theme",
  73. TightBorder: "Tight Border",
  74. Prompt: {
  75. Disable: {
  76. Title: "Disable auto-completion",
  77. SubTitle: "After disabling, auto-completion will not be available",
  78. },
  79. List: "Prompt List",
  80. ListCount: (builtin: number, custom: number) =>
  81. `${builtin} built-in, ${custom} user-defined`,
  82. Edit: "Edit",
  83. },
  84. HistoryCount: {
  85. Title: "Attached Messages Count",
  86. SubTitle: "Number of sent messages attached per request",
  87. },
  88. CompressThreshold: {
  89. Title: "History Compression Threshold",
  90. SubTitle:
  91. "Will compress if uncompressed messages length exceeds the value",
  92. },
  93. Token: {
  94. Title: "API Key",
  95. SubTitle: "Use your key to ignore access code limit",
  96. Placeholder: "OpenAI API Key",
  97. },
  98. AccessCode: {
  99. Title: "Access Code",
  100. SubTitle: "Access control enabled",
  101. Placeholder: "Need Access Code",
  102. },
  103. Model: "Model",
  104. Temperature: {
  105. Title: "Temperature",
  106. SubTitle: "A larger value makes the more random output",
  107. },
  108. MaxTokens: {
  109. Title: "Max Tokens",
  110. SubTitle: "Maximum length of input tokens and generated tokens",
  111. },
  112. PresencePenlty: {
  113. Title: "Presence Penalty",
  114. SubTitle:
  115. "A larger value increases the likelihood to talk about new topics",
  116. },
  117. },
  118. Store: {
  119. DefaultTopic: "New Conversation",
  120. BotHello: "Hello! How can I assist you today?",
  121. Error: "Something went wrong, please try again later.",
  122. Prompt: {
  123. History: (content: string) =>
  124. "This is a summary of the chat history between the AI and the user as a recap: " +
  125. content,
  126. Topic:
  127. "Provide a brief topic of the sentence without explanation. If there is no topic, return 'Chitchat'.",
  128. Summarize:
  129. "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
  130. },
  131. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  132. },
  133. Copy: {
  134. Success: "Copied to clipboard",
  135. Failed: "Copy failed, please grant permission to access clipboard",
  136. },
  137. };
  138. export default en;