cn.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. const cn = {
  2. ChatItem: {
  3. ChatItemCount: (count: number) => `${count} 条对话`,
  4. },
  5. Chat: {
  6. SubTitle: (count: number) => `与 ChatGPT 的 ${count} 条对话`,
  7. Actions: {
  8. ChatList: "查看消息列表",
  9. CompressedHistory: "查看压缩后的历史 Prompt",
  10. Export: "导出聊天记录",
  11. },
  12. Typing: "正在输入…",
  13. Input: (submitKey: string) => `输入消息,${submitKey} 发送`,
  14. Send: "发送",
  15. },
  16. Export: {
  17. Title: "导出聊天记录为 Markdown",
  18. Copy: "全部复制",
  19. Download: "下载文件",
  20. },
  21. Memory: {
  22. Title: "上下文记忆 Prompt",
  23. EmptyContent: "尚未记忆",
  24. Copy: "全部复制",
  25. },
  26. Home: {
  27. NewChat: "新的聊天",
  28. DeleteChat: "确认删除选中的对话?",
  29. },
  30. Settings: {
  31. Title: "设置",
  32. SubTitle: "设置选项",
  33. Actions: {
  34. ClearAll: "清除所有数据",
  35. ResetAll: "重置所有选项",
  36. Close: "关闭",
  37. },
  38. Lang: {
  39. Name: "Language",
  40. Options: {
  41. cn: "中文",
  42. en: "English",
  43. },
  44. },
  45. Avatar: "头像",
  46. SendKey: "发送键",
  47. Theme: "主题",
  48. TightBorder: "紧凑边框",
  49. HistoryCount: {
  50. Title: "附带历史消息数",
  51. SubTitle: "每次请求携带的历史消息数",
  52. },
  53. CompressThreshold: {
  54. Title: "历史消息长度压缩阈值",
  55. SubTitle: "当未压缩的历史消息超过该值时,将进行压缩",
  56. },
  57. Model: "模型 (model)",
  58. Temperature: {
  59. Title: "随机性 (temperature)",
  60. SubTitle: "值越大,回复越随机",
  61. },
  62. MaxTokens: {
  63. Title: "单次回复限制 (max_tokens)",
  64. SubTitle: "单次交互所用的最大 Token 数",
  65. },
  66. PresencePenlty: {
  67. Title: "话题新鲜度 (presence_penalty)",
  68. SubTitle: "值越大,越有可能扩展到新话题",
  69. },
  70. },
  71. Store: {
  72. DefaultTopic: "新的聊天",
  73. BotHello: "有什么可以帮你的吗",
  74. Error: "出错了,稍后重试吧",
  75. Prompt: {
  76. History: (content: string) =>
  77. "这是 ai 和用户的历史聊天总结作为前情提要:" + content,
  78. Topic:
  79. "直接返回这句话的简要主题,不要解释,如果没有主题,请直接返回“闲聊”",
  80. Summarize:
  81. "简要总结一下你和用户的对话,用作后续的上下文提示 prompt,控制在 50 字以内",
  82. },
  83. ConfirmClearAll: "确认清除所有聊天、设置数据?",
  84. },
  85. Copy: {
  86. Success: "已写入剪切板",
  87. Failed: "复制失败,请赋予剪切板权限",
  88. },
  89. };
  90. export type LocaleType = typeof cn;
  91. export default cn;