en.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. },
  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. HistoryCount: {
  68. Title: "Attached Messages Count",
  69. SubTitle: "Number of sent messages attached per request",
  70. },
  71. CompressThreshold: {
  72. Title: "History Compression Threshold",
  73. SubTitle:
  74. "Will compress if uncompressed messages length exceeds the value",
  75. },
  76. Token: {
  77. Title: "API Key",
  78. SubTitle: "Use your key to ignore access code limit",
  79. Placeholder: "OpenAI API Key",
  80. },
  81. AccessCode: {
  82. Title: "Access Code",
  83. SubTitle: "Access control enabled",
  84. Placeholder: "Need Access Code",
  85. },
  86. Model: "Model",
  87. Temperature: {
  88. Title: "Temperature",
  89. SubTitle: "A larger value makes the more random output",
  90. },
  91. MaxTokens: {
  92. Title: "Max Tokens",
  93. SubTitle: "Maximum length of input tokens and generated tokens",
  94. },
  95. PresencePenlty: {
  96. Title: "Presence Penalty",
  97. SubTitle:
  98. "A larger value increases the likelihood to talk about new topics",
  99. },
  100. },
  101. Store: {
  102. DefaultTopic: "New Conversation",
  103. BotHello: "Hello! How can I assist you today?",
  104. Error: "Something went wrong, please try again later.",
  105. Prompt: {
  106. History: (content: string) =>
  107. "This is a summary of the chat history between the AI and the user as a recap: " +
  108. content,
  109. Topic:
  110. "Provide a brief topic of the sentence without explanation. If there is no topic, return 'Chitchat'.",
  111. Summarize:
  112. "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
  113. },
  114. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  115. },
  116. Copy: {
  117. Success: "Copied to clipboard",
  118. Failed: "Copy failed, please grant permission to access clipboard",
  119. },
  120. };
  121. export default en;