tw.ts 5.6 KB

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