en.ts 2.9 KB

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