en.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. SendKey: "Send Key",
  49. Theme: "Theme",
  50. TightBorder: "Tight Border",
  51. HistoryCount: {
  52. Title: "Attached Messages Count",
  53. SubTitle: "Number of sent messages attached per request",
  54. },
  55. CompressThreshold: {
  56. Title: "History Compression Threshold",
  57. SubTitle:
  58. "Will compress if uncompressed messages length exceeds the value",
  59. },
  60. Model: "Model",
  61. Temperature: {
  62. Title: "Temperature",
  63. SubTitle: "A larger value makes the more random output",
  64. },
  65. MaxTokens: {
  66. Title: "Max Tokens",
  67. SubTitle: "Maximum length of input tokens and generated tokens",
  68. },
  69. PresencePenlty: {
  70. Title: "Presence Penalty",
  71. SubTitle:
  72. "A larger value increases the likelihood to talk about new topics",
  73. },
  74. },
  75. Store: {
  76. DefaultTopic: "New Conversation",
  77. BotHello: "Hello! How can I assist you today?",
  78. Error: "Something went wrong, please try again later.",
  79. Prompt: {
  80. History: (content: string) =>
  81. "This is a summary of the chat history between the AI and the user as a recap: " +
  82. content,
  83. Topic:
  84. "Provide a brief topic of the sentence without explanation. If there is no topic, return 'Chitchat'.",
  85. Summarize:
  86. "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
  87. },
  88. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  89. },
  90. Copy: {
  91. Success: "Copied to clipboard",
  92. Failed: "Copy failed, please grant permission to access clipboard",
  93. },
  94. };
  95. export default en;