cn.ts 3.2 KB

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