2023-03-28 13:29:30 +00:00
|
|
|
|
import type { LocaleType } from "./index";
|
|
|
|
|
|
|
|
|
|
const tw: LocaleType = {
|
|
|
|
|
WIP: "該功能仍在開發中……",
|
|
|
|
|
Error: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Unauthorized: "目前您的狀態是未授權,請前往設定頁面填寫授權碼。",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
ChatItem: {
|
|
|
|
|
ChatItemCount: (count: number) => `${count} 條對話`,
|
|
|
|
|
},
|
|
|
|
|
Chat: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
SubTitle: (count: number) => `您已經與 ChatGPT 進行了 ${count} 條對話`,
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Actions: {
|
|
|
|
|
ChatList: "查看消息列表",
|
|
|
|
|
CompressedHistory: "查看壓縮後的歷史 Prompt",
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Export: "匯出聊天紀錄",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Copy: "複製",
|
|
|
|
|
Stop: "停止",
|
|
|
|
|
Retry: "重試",
|
|
|
|
|
},
|
|
|
|
|
Typing: "正在輸入…",
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Input: (submitKey: string) => `輸入訊息後,按下 ${submitKey} 鍵即可發送`,
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Send: "發送",
|
|
|
|
|
},
|
|
|
|
|
Export: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Title: "匯出聊天記錄為 Markdown",
|
|
|
|
|
Copy: "複製全部",
|
|
|
|
|
Download: "下載檔案",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
Memory: {
|
|
|
|
|
Title: "上下文記憶 Prompt",
|
|
|
|
|
EmptyContent: "尚未記憶",
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Copy: "複製全部",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
Home: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
NewChat: "新的對話",
|
|
|
|
|
DeleteChat: "確定要刪除選取的對話嗎?",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
Settings: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Title: "設定",
|
|
|
|
|
SubTitle: "設定選項",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Actions: {
|
|
|
|
|
ClearAll: "清除所有數據",
|
2023-03-29 04:27:32 +00:00
|
|
|
|
ResetAll: "重置所有設定",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Close: "關閉",
|
|
|
|
|
},
|
|
|
|
|
Lang: {
|
|
|
|
|
Name: "語言",
|
|
|
|
|
Options: {
|
|
|
|
|
cn: "简体中文",
|
|
|
|
|
en: "English",
|
|
|
|
|
tw: "繁體中文",
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Avatar: "大頭貼",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Update: {
|
|
|
|
|
Version: (x: string) => `當前版本:${x}`,
|
|
|
|
|
IsLatest: "已是最新版本",
|
|
|
|
|
CheckUpdate: "檢查更新",
|
|
|
|
|
IsChecking: "正在檢查更新...",
|
|
|
|
|
FoundUpdate: (x: string) => `發現新版本:${x}`,
|
|
|
|
|
GoToUpdate: "前往更新",
|
|
|
|
|
},
|
|
|
|
|
SendKey: "發送鍵",
|
|
|
|
|
Theme: "主題",
|
|
|
|
|
TightBorder: "緊湊邊框",
|
2023-03-28 17:39:14 +00:00
|
|
|
|
Prompt: {
|
|
|
|
|
Disable: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Title: "停用提示詞自動補全",
|
|
|
|
|
SubTitle: "若停用後,將無法自動根據輸入進行補全",
|
2023-03-28 17:39:14 +00:00
|
|
|
|
},
|
|
|
|
|
List: "自定義提示詞列表",
|
|
|
|
|
ListCount: (builtin: number, custom: number) =>
|
|
|
|
|
`內置 ${builtin} 條,用戶定義 ${custom} 條`,
|
|
|
|
|
Edit: "編輯",
|
|
|
|
|
},
|
2023-03-28 13:29:30 +00:00
|
|
|
|
HistoryCount: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Title: "附帶歷史訊息數",
|
|
|
|
|
SubTitle: "每次請求附帶的歷史訊息數",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
CompressThreshold: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Title: "歷史訊息長度壓縮閾值",
|
|
|
|
|
SubTitle: "當未壓縮的歷史訊息超過該值時,將進行壓縮",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
Token: {
|
|
|
|
|
Title: "API Key",
|
2023-03-29 04:27:32 +00:00
|
|
|
|
SubTitle: "使用自己的 Key 可規避受控訪問限制",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Placeholder: "OpenAI API Key",
|
|
|
|
|
},
|
|
|
|
|
AccessCode: {
|
|
|
|
|
Title: "訪問碼",
|
|
|
|
|
SubTitle: "現在是受控訪問狀態",
|
|
|
|
|
Placeholder: "請輸入訪問碼",
|
|
|
|
|
},
|
|
|
|
|
Model: "模型 (model)",
|
|
|
|
|
Temperature: {
|
|
|
|
|
Title: "隨機性 (temperature)",
|
|
|
|
|
SubTitle: "值越大,回復越隨機",
|
|
|
|
|
},
|
|
|
|
|
MaxTokens: {
|
|
|
|
|
Title: "單次回復限制 (max_tokens)",
|
|
|
|
|
SubTitle: "單次交互所用的最大 Token 數",
|
|
|
|
|
},
|
|
|
|
|
PresencePenlty: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Title: "話題新穎度 (presence_penalty)",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
SubTitle: "值越大,越有可能擴展到新話題",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Store: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
DefaultTopic: "新的對話",
|
|
|
|
|
BotHello: "請問需要我的協助嗎?",
|
|
|
|
|
Error: "出錯了,請稍後再嘗試",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Prompt: {
|
|
|
|
|
History: (content: string) =>
|
2023-03-29 04:27:32 +00:00
|
|
|
|
"這是 AI 與用戶的歷史聊天總結,作為前情提要:" + content,
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Topic:
|
2023-03-29 04:27:32 +00:00
|
|
|
|
"直接返回這句話的簡要主題,無須解釋,若無主題,請直接返回「閒聊」",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
Summarize:
|
2023-03-29 04:27:32 +00:00
|
|
|
|
"簡要總結一下你和用戶的對話,作為後續的上下文提示 prompt,且字數控制在 50 字以內",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
2023-03-29 04:27:32 +00:00
|
|
|
|
ConfirmClearAll: "確認清除所有對話、設定數據?",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
Copy: {
|
2023-03-29 04:27:32 +00:00
|
|
|
|
Success: "已複製到剪貼簿中",
|
|
|
|
|
Failed: "複製失敗,請賦予剪貼簿權限",
|
2023-03-28 13:29:30 +00:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default tw;
|