tw.ts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. import { SubmitKey } from "../store/app";
  2. import type { LocaleType } from "./index";
  3. const tw: LocaleType = {
  4. WIP: "該功能仍在開發中……",
  5. Error: {
  6. Unauthorized: "目前您的狀態是未授權,請前往設定頁面輸入授權碼。",
  7. },
  8. ChatItem: {
  9. ChatItemCount: (count: number) => `${count} 條對話`,
  10. },
  11. Chat: {
  12. SubTitle: (count: number) => `您已經與 ChatGPT 進行了 ${count} 條對話`,
  13. Actions: {
  14. ChatList: "查看消息列表",
  15. CompressedHistory: "查看壓縮後的歷史 Prompt",
  16. Export: "匯出聊天紀錄",
  17. Copy: "複製",
  18. Stop: "停止",
  19. Retry: "重試",
  20. },
  21. Rename: "重命名對話",
  22. Typing: "正在輸入…",
  23. Input: (submitKey: string) => {
  24. var inputHints = `輸入訊息後,按下 ${submitKey} 鍵即可發送`;
  25. if (submitKey === String(SubmitKey.Enter)) {
  26. inputHints += ",Shift + Enter 鍵換行";
  27. }
  28. return inputHints;
  29. },
  30. Send: "發送",
  31. },
  32. Export: {
  33. Title: "匯出聊天記錄為 Markdown",
  34. Copy: "複製全部",
  35. Download: "下載檔案",
  36. MessageFromYou: "來自你的訊息",
  37. MessageFromChatGPT: "來自 ChatGPT 的訊息",
  38. },
  39. Memory: {
  40. Title: "上下文記憶 Prompt",
  41. EmptyContent: "尚未記憶",
  42. Copy: "複製全部",
  43. Send: "發送記憶",
  44. Reset: "重置對話",
  45. ResetConfirm: "重置後將清空當前對話記錄以及歷史記憶,確認重置?",
  46. },
  47. Home: {
  48. NewChat: "新的對話",
  49. DeleteChat: "確定要刪除選取的對話嗎?",
  50. DeleteToast: "已刪除對話",
  51. Revert: "撤銷",
  52. },
  53. Settings: {
  54. Title: "設定",
  55. SubTitle: "設定選項",
  56. Actions: {
  57. ClearAll: "清除所有數據",
  58. ResetAll: "重置所有設定",
  59. Close: "關閉",
  60. ConfirmResetAll: {
  61. Confirm: "Are you sure you want to reset all configurations?",
  62. },
  63. ConfirmClearAll: {
  64. Confirm: "Are you sure you want to reset all chat?",
  65. },
  66. },
  67. Lang: {
  68. Name: "Language",
  69. Options: {
  70. cn: "简体中文",
  71. en: "English",
  72. tw: "繁體中文",
  73. es: "Español",
  74. it: "Italiano",
  75. tr: "Türkçe",
  76. jp: "日本語",
  77. },
  78. },
  79. Avatar: "大頭貼",
  80. FontSize: {
  81. Title: "字型大小",
  82. SubTitle: "聊天內容的字型大小",
  83. },
  84. Update: {
  85. Version: (x: string) => `當前版本:${x}`,
  86. IsLatest: "已是最新版本",
  87. CheckUpdate: "檢查更新",
  88. IsChecking: "正在檢查更新...",
  89. FoundUpdate: (x: string) => `發現新版本:${x}`,
  90. GoToUpdate: "前往更新",
  91. },
  92. SendKey: "發送鍵",
  93. Theme: "主題",
  94. TightBorder: "緊湊邊框",
  95. SendPreviewBubble: "發送預覽氣泡",
  96. Prompt: {
  97. Disable: {
  98. Title: "停用提示詞自動補全",
  99. SubTitle: "在輸入框開頭輸入 / 即可觸發自動補全",
  100. },
  101. List: "自定義提示詞列表",
  102. ListCount: (builtin: number, custom: number) =>
  103. `內置 ${builtin} 條,用戶定義 ${custom} 條`,
  104. Edit: "編輯",
  105. },
  106. HistoryCount: {
  107. Title: "附帶歷史訊息數",
  108. SubTitle: "每次請求附帶的歷史訊息數",
  109. },
  110. CompressThreshold: {
  111. Title: "歷史訊息長度壓縮閾值",
  112. SubTitle: "當未壓縮的歷史訊息超過該值時,將進行壓縮",
  113. },
  114. Token: {
  115. Title: "API Key",
  116. SubTitle: "使用自己的 Key 可規避授權訪問限制",
  117. Placeholder: "OpenAI API Key",
  118. },
  119. Usage: {
  120. Title: "帳戶餘額",
  121. SubTitle(used: any, total: any) {
  122. return `本月已使用 $${used},订阅总额 $${total}`;
  123. },
  124. IsChecking: "正在檢查…",
  125. Check: "重新檢查",
  126. NoAccess: "輸入API Key查看餘額",
  127. },
  128. AccessCode: {
  129. Title: "授權碼",
  130. SubTitle: "現在是未授權訪問狀態",
  131. Placeholder: "請輸入授權碼",
  132. },
  133. Model: "模型 (model)",
  134. Temperature: {
  135. Title: "隨機性 (temperature)",
  136. SubTitle: "值越大,回復越隨機",
  137. },
  138. MaxTokens: {
  139. Title: "單次回復限制 (max_tokens)",
  140. SubTitle: "單次交互所用的最大 Token 數",
  141. },
  142. PresencePenlty: {
  143. Title: "話題新穎度 (presence_penalty)",
  144. SubTitle: "值越大,越有可能擴展到新話題",
  145. },
  146. },
  147. Store: {
  148. DefaultTopic: "新的對話",
  149. BotHello: "請問需要我的協助嗎?",
  150. Error: "出錯了,請稍後再嘗試",
  151. Prompt: {
  152. History: (content: string) =>
  153. "這是 AI 與用戶的歷史聊天總結,作為前情提要:" + content,
  154. Topic: "Summarise the conversation in a short and concise eye-catching title that instantly conveys the main topic. Use as few words as possible. Use the language used in the enquiry, e.g. use English for English enquiry, use zh-hant for traditional chinese enquiry. Don't use quotation marks at the beginning and the end.",
  155. Summarize:
  156. "Summarise the conversation in at most 250 tokens for continuing the conversation in future. Use the language used in the conversation, e.g. use English for English conversation, use zh-hant for traditional chinese conversation.",
  157. },
  158. ConfirmClearAll: "確認清除所有對話、設定數據?",
  159. },
  160. Copy: {
  161. Success: "已複製到剪貼簿中",
  162. Failed: "複製失敗,請賦予剪貼簿權限",
  163. },
  164. Context: {
  165. Toast: (x: any) => `已設置 ${x} 條前置上下文`,
  166. Edit: "前置上下文和歷史記憶",
  167. Add: "新增壹條",
  168. },
  169. };
  170. export default tw;