en.ts 3.8 KB

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