cn.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. CompressThreshold: '历史消息长度压缩阈值',
  51. },
  52. Store: {
  53. DefaultTopic: '新的聊天',
  54. BotHello: '有什么可以帮你的吗',
  55. Error: '出错了,稍后重试吧',
  56. Prompt: {
  57. History: (content: string) => '这是 ai 和用户的历史聊天总结作为前情提要:' + content,
  58. Topic: "直接返回这句话的简要主题,不要解释,如果没有主题,请直接返回“闲聊”",
  59. Summarize: '简要总结一下你和用户的对话,用作后续的上下文提示 prompt,控制在 50 字以内',
  60. },
  61. ConfirmClearAll: '确认清除所有聊天、设置数据?',
  62. },
  63. Copy: {
  64. Success: '已写入剪切板',
  65. Failed: '复制失败,请赋予剪切板权限',
  66. }
  67. }
  68. export type LocaleType = typeof cn;
  69. export default cn;