en.ts 3.7 KB

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