cn.ts 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. },
  29. Settings: {
  30. Title: '设置',
  31. SubTitle: '设置选项',
  32. Actions: {
  33. ClearAll: '清除所有数据',
  34. ResetAll: '重置所有选项',
  35. Close: '关闭',
  36. },
  37. Lang: {
  38. Name: 'Language',
  39. Options: {
  40. cn: '中文',
  41. en: 'English'
  42. }
  43. },
  44. Avatar: '头像',
  45. SendKey: '发送键',
  46. Theme: '主题',
  47. TightBorder: '紧凑边框',
  48. HistoryCount: '附带历史消息数',
  49. CompressThreshold: '历史消息长度压缩阈值',
  50. },
  51. Store: {
  52. DefaultTopic: '新的聊天',
  53. BotHello: '有什么可以帮你的吗',
  54. Error: '出错了,稍后重试吧',
  55. Prompt: {
  56. History: (content: string) => '这是 ai 和用户的历史聊天总结作为前情提要:' + content,
  57. Topic: "直接返回这句话的简要主题,不要解释,如果没有主题,请直接返回“闲聊”",
  58. Summarize: '简要总结一下你和用户的对话,用作后续的上下文提示 prompt,控制在 50 字以内',
  59. },
  60. ConfirmClearAll: '确认清除所有聊天、设置数据?',
  61. },
  62. Copy: {
  63. Success: '已写入剪切板',
  64. Failed: '复制失败,请赋予剪切板权限',
  65. }
  66. }
  67. export type LocaleType = typeof cn;
  68. export default cn;