ChatGPT-Next-Web/app/locales/cn.ts
2023-05-07 14:54:09 +07:00

243 lines
6.8 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/config";
const cn = {
WIP: "该功能仍在开发中……",
Error: {
Unauthorized:
"现在是未授权状态,请点击左下角[设置](/#/settings)按钮输入访问密码。",
},
ChatItem: {
ChatItemCount: (count: number) => `${count} 条对话`,
},
Chat: {
SubTitle: (count: number) => `与 ChatGPT 的 ${count} 条对话`,
Actions: {
ChatList: "查看消息列表",
CompressedHistory: "查看压缩后的历史 Prompt",
Export: "导出聊天记录",
Copy: "复制",
Stop: "停止",
Retry: "重试",
Delete: "删除",
},
Rename: "重命名对话",
Typing: "正在输入…",
Input: (submitKey: string) => {
var inputHints = `${submitKey} 发送`;
if (submitKey === String(SubmitKey.Enter)) {
inputHints += "Shift + Enter 换行";
}
return inputHints + "/ 触发补全";
},
Send: "发送",
Config: {
Reset: "重置默认",
SaveAs: "另存为面具",
},
},
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: "",
ConfirmClearAll: "",
},
Lang: {
Name: "Language",
All: "",
Options: {
cn: "",
en: "English",
tw: "",
es: "Español",
it: "Italiano",
tr: "Türkçe",
jp: "",
de: "Deutsch",
vi: "Vietnamese",
},
},
Avatar: "",
FontSize: {
Title: "",
SubTitle: "",
},
Update: {
Version: (x: string) => `当前版本:${x}`,
IsLatest: "",
CheckUpdate: "",
IsChecking: "...",
FoundUpdate: (x: string) => `发现新版本:${x}`,
GoToUpdate: "",
},
SendKey: "",
Theme: "",
TightBorder: "",
SendPreviewBubble: {
Title: "",
SubTitle: " Markdown ",
},
Mask: {
Title: "",
SubTitle: "",
},
Prompt: {
Disable: {
Title: "",
SubTitle: " / ",
},
List: "",
ListCount: (builtin: number, custom: number) =>
`内置 ${builtin} 条,用户定义 ${custom} 条`,
Edit: "",
Modal: {
Title: "",
Add: "",
Search: "",
},
EditModal: {
Title: "",
},
},
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: "",
},
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 ",
},
},
Copy: {
Success: "",
Failed: "",
},
Context: {
Toast: (x: any) => `已设置 ${x} 条前置上下文`,
Edit: "",
Add: "",
},
Plugin: {
Name: "",
},
Mask: {
Name: "",
Page: {
Title: "",
SubTitle: (count: number) => `${count} 个预设角色定义`,
Search: "",
Create: "",
},
Item: {
Info: (count: number) => `包含 ${count} 条预设对话`,
Chat: "",
View: "",
Edit: "",
Delete: "",
DeleteConfirm: "",
},
EditModal: {
Title: (readonly: boolean) =>
`编辑预设面具 ${readonly ? "" : ""}`,
Download: "",
Clone: "",
},
Config: {
Avatar: "",
Name: "",
},
},
NewChat: {
Return: "",
Skip: "",
NotShow: "",
ConfirmNoShow: "",
Title: "",
SubTitle: "",
More: "",
},
UI: {
Confirm: "",
Cancel: "",
Close: "",
Create: "",
Edit: "",
},
};
export type LocaleType = typeof cn;
export default cn;