en.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. },
  20. Typing: "Typing…",
  21. Input: (submitKey: string) =>
  22. `Type something and press ${submitKey} to send`,
  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. },
  53. },
  54. Avatar: "Avatar",
  55. Update: {
  56. Version: (x: string) => `Version: ${x}`,
  57. IsLatest: "Latest version",
  58. CheckUpdate: "Check Update",
  59. IsChecking: "Checking update...",
  60. FoundUpdate: (x: string) => `Found new version: ${x}`,
  61. GoToUpdate: "Update",
  62. },
  63. SendKey: "Send Key",
  64. Theme: "Theme",
  65. TightBorder: "Tight Border",
  66. HistoryCount: {
  67. Title: "Attached Messages Count",
  68. SubTitle: "Number of sent messages attached per request",
  69. },
  70. CompressThreshold: {
  71. Title: "History Compression Threshold",
  72. SubTitle:
  73. "Will compress if uncompressed messages length exceeds the value",
  74. },
  75. AccessCode: {
  76. Title: "Access Code",
  77. SubTitle: "Access control enabled",
  78. Placeholder: "Need Access Code",
  79. },
  80. Model: "Model",
  81. Temperature: {
  82. Title: "Temperature",
  83. SubTitle: "A larger value makes the more random output",
  84. },
  85. MaxTokens: {
  86. Title: "Max Tokens",
  87. SubTitle: "Maximum length of input tokens and generated tokens",
  88. },
  89. PresencePenlty: {
  90. Title: "Presence Penalty",
  91. SubTitle:
  92. "A larger value increases the likelihood to talk about new topics",
  93. },
  94. },
  95. Store: {
  96. DefaultTopic: "New Conversation",
  97. BotHello: "Hello! How can I assist you today?",
  98. Error: "Something went wrong, please try again later.",
  99. Prompt: {
  100. History: (content: string) =>
  101. "This is a summary of the chat history between the AI and the user as a recap: " +
  102. content,
  103. Topic:
  104. "Provide a brief topic of the sentence without explanation. If there is no topic, return 'Chitchat'.",
  105. Summarize:
  106. "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
  107. },
  108. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  109. },
  110. Copy: {
  111. Success: "Copied to clipboard",
  112. Failed: "Copy failed, please grant permission to access clipboard",
  113. },
  114. };
  115. export default en;