ChatGPT-Next-Web/app/locales/cn.ts
2023-04-10 14:12:31 +00:00

176 lines
5.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { SubmitKey } from "../store/app";
const cn = {
WIP: "该功能仍在开发中……",
Error: {
Unauthorized: "现在是未授权状态,请点击左下角设置按钮输入访问密码。",
},
ChatItem: {
ChatItemCount: (count: number) => `${count} 条对话`,
},
Chat: {
SubTitle: (count: number) => `与 ChatGPT 的 ${count} 条对话`,
Actions: {
ChatList: "查看消息列表",
CompressedHistory: "查看压缩后的历史 Prompt",
Export: "导出聊天记录",
Copy: "复制",
Stop: "停止",
Retry: "重试",
},
Rename: "重命名对话",
Typing: "正在输入…",
Input: (submitKey: string) => {
var inputHints = `${submitKey} 发送`;
if (submitKey === String(SubmitKey.Enter)) {
inputHints += "Shift + Enter 换行";
}
return inputHints + "/ 触发补全";
},
Send: "发送",
},
Export: {
Title: "导出聊天记录为 Markdown",
Copy: "全部复制",
Download: "下载文件",
MessageFromYou: "来自你的消息",
MessageFromChatGPT: "来自 ChatGPT 的消息",
},
Memory: {
Title: "历史记忆",
EmptyContent: "尚未记忆",
Send: "发送记忆",
Copy: "复制记忆",
Reset: "",
ResetConfirm: "",
},
Home: {
NewChat: "",
DeleteChat: "",
DeleteToast: "",
Revert: "",
},
Settings: {
Title: "",
SubTitle: "",
Actions: {
ClearAll: "",
ResetAll: "",
Close: "",
ConfirmResetAll: {
Confirm: "Are you sure you want to reset all configurations?",
},
ConfirmClearAll: {
Confirm: "Are you sure you want to reset all chat?",
},
},
Lang: {
Name: "Language",
Options: {
cn: "",
en: "English",
tw: "",
es: "Español",
it: "Italiano",
tr: "Türkçe",
jp: "",
},
},
Avatar: "",
FontSize: {
Title: "",
SubTitle: "",
},
Update: {
Version: (x: string) => `当前版本:${x}`,
IsLatest: "",
CheckUpdate: "",
IsChecking: "...",
FoundUpdate: (x: string) => `发现新版本:${x}`,
GoToUpdate: "",
},
SendKey: "",
Theme: "",
TightBorder: "",
SendPreviewBubble: "",
Prompt: {
Disable: {
Title: "",
SubTitle: " / ",
},
List: "",
ListCount: (builtin: number, custom: number) =>
`内置 ${builtin} 条,用户定义 ${custom} 条`,
Edit: "",
},
HistoryCount: {
Title: "",
SubTitle: "",
},
CompressThreshold: {
Title: "",
SubTitle: "",
},
Token: {
Title: "API Key",
SubTitle: "使 Key 访",
Placeholder: "OpenAI API Key",
},
Usage: {
Title: "",
SubTitle(used: any, total: any) {
return `本月已使用 $${used},订阅总额 $${total}`;
},
IsChecking: "",
Check: "",
NoAccess: " API Key 访",
},
AccessCode: {
Title: "访",
SubTitle: "访",
Placeholder: "访",
},
Model: " (model)",
Temperature: {
Title: " (temperature)",
SubTitle: " 1 ",
},
MaxTokens: {
Title: " (max_tokens)",
SubTitle: " Token ",
},
PresencePenlty: {
Title: " (presence_penalty)",
SubTitle: "",
},
},
Store: {
DefaultTopic: "",
BotHello: "",
Error: "",
Prompt: {
History: (content: string) =>
" ai " + content,
Topic:
"使",
Summarize:
" prompt 200 ",
},
ConfirmClearAll: "",
},
Copy: {
Success: "",
Failed: "",
},
Context: {
Toast: (x: any) => `已设置 ${x} 条前置上下文`,
Edit: "",
Add: "",
},
};
export type LocaleType = typeof cn;
export default cn;