tw.ts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. import { SubmitKey } from "../store/config";
  2. import type { PartialLocaleType } from "./index";
  3. const tw: PartialLocaleType = {
  4. WIP: "該功能仍在開發中……",
  5. Error: {
  6. Unauthorized: "目前您的狀態是未授權,請前往[設定頁面](/#/auth)輸入授權碼。",
  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. Config: {
  33. Reset: "重設",
  34. SaveAs: "另存新檔",
  35. },
  36. },
  37. Export: {
  38. Title: "將聊天記錄匯出為 Markdown",
  39. Copy: "複製全部",
  40. Download: "下載檔案",
  41. MessageFromYou: "來自您的訊息",
  42. MessageFromChatGPT: "來自 ChatGPT 的訊息",
  43. },
  44. Memory: {
  45. Title: "上下文記憶 Prompt",
  46. EmptyContent: "尚未記憶",
  47. Copy: "複製全部",
  48. Send: "傳送記憶",
  49. Reset: "重設對話",
  50. ResetConfirm: "重設後將清除目前對話記錄以及歷史記憶,確認重設?",
  51. },
  52. Home: {
  53. NewChat: "新的對話",
  54. DeleteChat: "確定要刪除選取的對話嗎?",
  55. DeleteToast: "已刪除對話",
  56. Revert: "撤銷",
  57. },
  58. Settings: {
  59. Title: "設定",
  60. SubTitle: "設定選項",
  61. Lang: {
  62. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  63. All: "所有語言",
  64. },
  65. Avatar: "大頭貼",
  66. FontSize: {
  67. Title: "字型大小",
  68. SubTitle: "聊天內容的字型大小",
  69. },
  70. InjectSystemPrompts: {
  71. Title: "匯入系統提示",
  72. SubTitle: "強制在每個請求的訊息列表開頭新增一個模擬 ChatGPT 的系統提示",
  73. },
  74. Update: {
  75. Version: (x: string) => `目前版本:${x}`,
  76. IsLatest: "已是最新版本",
  77. CheckUpdate: "檢查更新",
  78. IsChecking: "正在檢查更新...",
  79. FoundUpdate: (x: string) => `發現新版本:${x}`,
  80. GoToUpdate: "前往更新",
  81. },
  82. SendKey: "傳送鍵",
  83. Theme: "主題",
  84. TightBorder: "緊湊邊框",
  85. SendPreviewBubble: {
  86. Title: "預覽氣泡",
  87. SubTitle: "在預覽氣泡中預覽 Markdown 內容",
  88. },
  89. Mask: {
  90. Splash: {
  91. Title: "面具啟動頁面",
  92. SubTitle: "新增聊天時,呈現面具啟動頁面",
  93. },
  94. },
  95. Prompt: {
  96. Disable: {
  97. Title: "停用提示詞自動補齊",
  98. SubTitle: "在輸入框開頭輸入 / 即可觸發自動補齊",
  99. },
  100. List: "自定義提示詞列表",
  101. ListCount: (builtin: number, custom: number) =>
  102. `內建 ${builtin} 條,使用者定義 ${custom} 條`,
  103. Edit: "編輯",
  104. Modal: {
  105. Title: "提示詞列表",
  106. Add: "新增一條",
  107. Search: "搜尋提示詞",
  108. },
  109. EditModal: {
  110. Title: "編輯提示詞",
  111. },
  112. },
  113. HistoryCount: {
  114. Title: "附帶歷史訊息數",
  115. SubTitle: "每次請求附帶的歷史訊息數",
  116. },
  117. CompressThreshold: {
  118. Title: "歷史訊息長度壓縮閾值",
  119. SubTitle: "當未壓縮的歷史訊息超過該值時,將進行壓縮",
  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. Model: "模型 (model)",
  131. Temperature: {
  132. Title: "隨機性 (temperature)",
  133. SubTitle: "值越大,回應越隨機",
  134. },
  135. MaxTokens: {
  136. Title: "單次回應限制 (max_tokens)",
  137. SubTitle: "單次互動所用的最大 Token 數",
  138. },
  139. PresencePenalty: {
  140. Title: "話題新穎度 (presence_penalty)",
  141. SubTitle: "值越大,越有可能拓展到新話題",
  142. },
  143. FrequencyPenalty: {
  144. Title: "頻率懲罰度 (frequency_penalty)",
  145. SubTitle: "值越大,越有可能降低重複字詞",
  146. },
  147. },
  148. Store: {
  149. DefaultTopic: "新的對話",
  150. BotHello: "請問需要我的協助嗎?",
  151. Error: "出錯了,請稍後再嘗試",
  152. Prompt: {
  153. History: (content: string) =>
  154. "這是 AI 與使用者的歷史聊天總結,作為前情提要:" + content,
  155. Topic:
  156. "Use the language used by the user (e.g. en for english conversation, zh-hant for chinese conversation, etc.) to generate a title (at most 6 words) summarizing our conversation without any lead-in, quotation marks, preamble like 'Title:', direct text copies, single-word replies, quotation marks, translations, or brackets. Remove enclosing quotation marks. The title should make third-party grasp the essence of the conversation in first sight.",
  157. Summarize:
  158. "Use the language used by the user (e.g. en-us for english conversation, zh-hant for chinese conversation, etc.) to summarise the conversation in at most 200 words. The summary will be used as prompt for you to continue the conversation in the future.",
  159. },
  160. },
  161. Copy: {
  162. Success: "已複製到剪貼簿中",
  163. Failed: "複製失敗,請賦予剪貼簿權限",
  164. },
  165. Context: {
  166. Toast: (x: any) => `已設定 ${x} 條前置上下文`,
  167. Edit: "前置上下文和歷史記憶",
  168. Add: "新增一條",
  169. },
  170. Plugin: { Name: "外掛" },
  171. FineTuned: { Sysmessage: "你是一個助手" },
  172. Mask: {
  173. Name: "面具",
  174. Page: {
  175. Title: "預設角色面具",
  176. SubTitle: (count: number) => `${count} 個預設角色定義`,
  177. Search: "搜尋角色面具",
  178. Create: "新增",
  179. },
  180. Item: {
  181. Info: (count: number) => `包含 ${count} 條預設對話`,
  182. Chat: "對話",
  183. View: "檢視",
  184. Edit: "編輯",
  185. Delete: "刪除",
  186. DeleteConfirm: "確認刪除?",
  187. },
  188. EditModal: {
  189. Title: (readonly: boolean) =>
  190. `編輯預設面具 ${readonly ? "(只讀)" : ""}`,
  191. Download: "下載預設",
  192. Clone: "複製預設",
  193. },
  194. Config: {
  195. Avatar: "角色頭像",
  196. Name: "角色名稱",
  197. },
  198. },
  199. NewChat: {
  200. Return: "返回",
  201. Skip: "跳過",
  202. Title: "挑選一個面具",
  203. SubTitle: "現在開始,與面具背後的靈魂思維碰撞",
  204. More: "搜尋更多",
  205. NotShow: "不再呈現",
  206. ConfirmNoShow: "確認停用?停用後可以隨時在設定中重新啟用。",
  207. },
  208. UI: {
  209. Confirm: "確認",
  210. Cancel: "取消",
  211. Close: "關閉",
  212. Create: "新增",
  213. Edit: "編輯",
  214. },
  215. Exporter: {
  216. Model: "模型",
  217. Messages: "訊息",
  218. Topic: "主題",
  219. Time: "時間",
  220. },
  221. };
  222. export default tw;