tw.ts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. import { SubmitKey } from "../store/config";
  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. 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. Actions: {
  62. ClearAll: "清除所有資料",
  63. ResetAll: "重設所有設定",
  64. Close: "關閉",
  65. ConfirmResetAll: "您確定要重設所有設定嗎?",
  66. ConfirmClearAll: "您確定要清除所有数据嗎?",
  67. },
  68. Lang: {
  69. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  70. All: "所有语言",
  71. Options: {
  72. cn: "简体中文",
  73. en: "English",
  74. tw: "繁體中文",
  75. es: "Español",
  76. it: "Italiano",
  77. tr: "Türkçe",
  78. jp: "日本語",
  79. de: "Deutsch",
  80. vi: "Vietnamese",
  81. ru: "Русский",
  82. cs: "Čeština",
  83. },
  84. },
  85. Avatar: "大頭貼",
  86. FontSize: {
  87. Title: "字型大小",
  88. SubTitle: "聊天內容的字型大小",
  89. },
  90. Update: {
  91. Version: (x: string) => `當前版本:${x}`,
  92. IsLatest: "已是最新版本",
  93. CheckUpdate: "檢查更新",
  94. IsChecking: "正在檢查更新...",
  95. FoundUpdate: (x: string) => `發現新版本:${x}`,
  96. GoToUpdate: "前往更新",
  97. },
  98. SendKey: "發送鍵",
  99. Theme: "主題",
  100. TightBorder: "緊湊邊框",
  101. SendPreviewBubble: {
  102. Title: "預覽氣泡",
  103. SubTitle: "在预览气泡中预览 Markdown 内容",
  104. },
  105. Mask: {
  106. Title: "面具启动页",
  107. SubTitle: "新建聊天时,展示面具启动页",
  108. },
  109. Prompt: {
  110. Disable: {
  111. Title: "停用提示詞自動補齊",
  112. SubTitle: "在輸入框開頭輸入 / 即可觸發自動補齊",
  113. },
  114. List: "自定義提示詞列表",
  115. ListCount: (builtin: number, custom: number) =>
  116. `內建 ${builtin} 條,用戶定義 ${custom} 條`,
  117. Edit: "編輯",
  118. Modal: {
  119. Title: "提示詞列表",
  120. Add: "新增一條",
  121. Search: "搜尋提示詞",
  122. },
  123. EditModal: {
  124. Title: "编辑提示词",
  125. },
  126. },
  127. HistoryCount: {
  128. Title: "附帶歷史訊息數",
  129. SubTitle: "每次請求附帶的歷史訊息數",
  130. },
  131. CompressThreshold: {
  132. Title: "歷史訊息長度壓縮閾值",
  133. SubTitle: "當未壓縮的歷史訊息超過該值時,將進行壓縮",
  134. },
  135. Token: {
  136. Title: "API Key",
  137. SubTitle: "使用自己的 Key 可規避授權存取限制",
  138. Placeholder: "OpenAI API Key",
  139. },
  140. Usage: {
  141. Title: "帳戶餘額",
  142. SubTitle(used: any, total: any) {
  143. return `本月已使用 $${used},訂閱總額 $${total}`;
  144. },
  145. IsChecking: "正在檢查…",
  146. Check: "重新檢查",
  147. NoAccess: "輸入API Key查看餘額",
  148. },
  149. AccessCode: {
  150. Title: "授權碼",
  151. SubTitle: "目前是未授權存取狀態",
  152. Placeholder: "請輸入授權碼",
  153. },
  154. Model: "模型 (model)",
  155. Temperature: {
  156. Title: "隨機性 (temperature)",
  157. SubTitle: "值越大,回應越隨機",
  158. },
  159. MaxTokens: {
  160. Title: "單次回應限制 (max_tokens)",
  161. SubTitle: "單次互動所用的最大 Token 數",
  162. },
  163. PresencePenlty: {
  164. Title: "話題新穎度 (presence_penalty)",
  165. SubTitle: "值越大,越有可能擴展到新話題",
  166. },
  167. },
  168. Store: {
  169. DefaultTopic: "新的對話",
  170. BotHello: "請問需要我的協助嗎?",
  171. Error: "出錯了,請稍後再嘗試",
  172. Prompt: {
  173. History: (content: string) =>
  174. "這是 AI 與用戶的歷史聊天總結,作為前情提要:" + content,
  175. Topic:
  176. "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.",
  177. Summarize:
  178. "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.",
  179. },
  180. },
  181. Copy: {
  182. Success: "已複製到剪貼簿中",
  183. Failed: "複製失敗,請賦予剪貼簿權限",
  184. },
  185. Context: {
  186. Toast: (x: any) => `已設定 ${x} 條前置上下文`,
  187. Edit: "前置上下文和歷史記憶",
  188. Add: "新增一條",
  189. },
  190. Plugin: { Name: "插件" },
  191. Mask: {
  192. Name: "面具",
  193. Page: {
  194. Title: "预设角色面具",
  195. SubTitle: (count: number) => `${count} 个预设角色定义`,
  196. Search: "搜索角色面具",
  197. Create: "新建",
  198. },
  199. Item: {
  200. Info: (count: number) => `包含 ${count} 条预设对话`,
  201. Chat: "对话",
  202. View: "查看",
  203. Edit: "编辑",
  204. Delete: "删除",
  205. DeleteConfirm: "确认删除?",
  206. },
  207. EditModal: {
  208. Title: (readonly: boolean) =>
  209. `编辑预设面具 ${readonly ? "(只读)" : ""}`,
  210. Download: "下载预设",
  211. Clone: "克隆预设",
  212. },
  213. Config: {
  214. Avatar: "角色头像",
  215. Name: "角色名称",
  216. },
  217. },
  218. NewChat: {
  219. Return: "返回",
  220. Skip: "跳过",
  221. Title: "挑选一个面具",
  222. SubTitle: "现在开始,与面具背后的灵魂思维碰撞",
  223. More: "搜索更多",
  224. NotShow: "不再展示",
  225. ConfirmNoShow: "确认禁用?禁用后可以随时在设置中重新启用。",
  226. },
  227. UI: {
  228. Confirm: "确认",
  229. Cancel: "取消",
  230. Close: "关闭",
  231. Create: "新建",
  232. Edit: "编辑",
  233. },
  234. };
  235. export default tw;