ChatGPT-Next-Web/app/locales/cn.ts
2023-04-07 00:14:27 +08:00

168 lines
4.9 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: "",
},
Lang: {
Name: "Language",
Options: {
cn: "",
en: "English",
tw: "",
es: "Español",
it: "Italiano",
},
},
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: "",
},
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;