ChatGPT-Next-Web/app/locales/cn.ts

267 lines
7.6 KiB
TypeScript
Raw Normal View History

2023-04-21 16:12:07 +00:00
import { SubmitKey } from "../store/config";
2023-03-20 16:17:45 +00:00
const cn = {
WIP: "该功能仍在开发中……",
Error: {
2023-04-23 17:15:44 +00:00
Unauthorized:
"访问密码不正确或为空,请前往[设置](/#/settings)页输入正确的访问密码,或者填入你自己的 OpenAI API Key。",
},
2023-03-21 16:20:32 +00:00
ChatItem: {
ChatItemCount: (count: number) => `${count} 条对话`,
},
Chat: {
SubTitle: (count: number) => `与 ChatGPT 的 ${count} 条对话`,
Actions: {
ChatList: "查看消息列表",
CompressedHistory: "查看压缩后的历史 Prompt",
Export: "导出聊天记录",
Copy: "复制",
Stop: "停止",
2023-03-26 10:59:09 +00:00
Retry: "重试",
Delete: "删除",
2023-03-21 16:20:32 +00:00
},
2023-03-29 16:02:50 +00:00
Rename: "重命名对话",
2023-03-21 16:20:32 +00:00
Typing: "正在输入…",
Input: (submitKey: string) => {
var inputHints = `${submitKey} 发送`;
if (submitKey === String(SubmitKey.Enter)) {
inputHints += "Shift + Enter 换行";
}
return inputHints + "/ 触发补全";
},
2023-03-21 16:20:32 +00:00
Send: "发送",
2023-04-26 17:16:21 +00:00
Config: {
Reset: "清除记忆",
SaveAs: "存为面具",
2023-04-26 17:16:21 +00:00
},
2023-03-21 16:20:32 +00:00
},
Export: {
Title: "分享聊天记录",
2023-03-21 16:20:32 +00:00
Copy: "全部复制",
Download: "下载文件",
Share: "分享到 ShareGPT",
MessageFromYou: "来自你的消息",
MessageFromChatGPT: "来自 ChatGPT 的消息",
Format: {
Title: "导出格式",
SubTitle: "可以导出 Markdown 文本或者 PNG 图片",
},
IncludeContext: {
Title: "包含面具上下文",
SubTitle: "是否在消息中展示面具上下文",
},
Steps: {
Select: "选取",
Preview: "预览",
},
},
Select: {
Search: "搜索消息",
All: "选取全部",
2023-05-24 17:04:37 +00:00
Latest: "最近几条",
Clear: "清除选中",
2023-03-21 16:20:32 +00:00
},
Memory: {
Title: "历史摘要",
2023-04-22 17:27:15 +00:00
EmptyContent: "对话内容过短,无需总结",
Send: "自动压缩聊天记录并作为上下文发送",
Copy: "复制摘要",
Reset: "[unused]",
ResetConfirm: "确认清空历史摘要?",
2023-03-21 16:20:32 +00:00
},
Home: {
NewChat: "新的聊天",
DeleteChat: "确认删除选中的对话?",
2023-04-06 16:14:27 +00:00
DeleteToast: "已删除会话",
Revert: "撤销",
2023-03-21 16:20:32 +00:00
},
Settings: {
Title: "设置",
SubTitle: "设置选项",
Actions: {
ClearAll: "清除所有数据",
ResetAll: "重置所有选项",
Close: "关闭",
ConfirmResetAll: "确认重置所有配置?",
ConfirmClearAll: "确认清除所有数据?",
2023-03-21 16:20:32 +00:00
},
Lang: {
Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
2023-04-26 17:16:21 +00:00
All: "所有语言",
2023-03-20 16:17:45 +00:00
},
2023-03-21 16:20:32 +00:00
Avatar: "头像",
2023-03-28 06:37:44 +00:00
FontSize: {
Title: "字体大小",
SubTitle: "聊天内容的字体大小",
},
2023-03-23 16:01:00 +00:00
Update: {
Version: (x: string) => `当前版本:${x}`,
IsLatest: "已是最新版本",
CheckUpdate: "检查更新",
IsChecking: "正在检查更新...",
FoundUpdate: (x: string) => `发现新版本:${x}`,
GoToUpdate: "前往更新",
},
2023-03-21 16:20:32 +00:00
SendKey: "发送键",
Theme: "主题",
2023-04-09 15:51:12 +00:00
TightBorder: "无边框模式",
SendPreviewBubble: {
Title: "预览气泡",
SubTitle: "在预览气泡中预览 Markdown 内容",
},
Mask: {
Title: "面具启动页",
SubTitle: "新建聊天时,展示面具启动页",
},
2023-03-28 17:30:11 +00:00
Prompt: {
Disable: {
Title: "禁用提示词自动补全",
SubTitle: "在输入框开头输入 / 即可触发自动补全",
2023-03-28 17:30:11 +00:00
},
List: "自定义提示词列表",
ListCount: (builtin: number, custom: number) =>
`内置 ${builtin} 条,用户定义 ${custom}`,
Edit: "编辑",
2023-04-17 17:34:12 +00:00
Modal: {
Title: "提示词列表",
2023-05-01 18:26:43 +00:00
Add: "新建",
2023-04-18 08:13:32 +00:00
Search: "搜索提示词",
2023-04-17 17:34:12 +00:00
},
2023-05-01 18:26:43 +00:00
EditModal: {
Title: "编辑提示词",
},
2023-03-28 17:30:11 +00:00
},
2023-03-21 16:20:32 +00:00
HistoryCount: {
Title: "附带历史消息数",
SubTitle: "每次请求携带的历史消息数",
2023-03-20 16:17:45 +00:00
},
2023-03-21 16:20:32 +00:00
CompressThreshold: {
Title: "历史消息长度压缩阈值",
SubTitle: "当未压缩的历史消息超过该值时,将进行压缩",
2023-03-20 16:17:45 +00:00
},
2023-03-26 11:58:25 +00:00
Token: {
Title: "API Key",
2023-04-05 19:56:54 +00:00
SubTitle: "使用自己的 Key 可绕过密码访问限制",
2023-03-26 11:58:25 +00:00
Placeholder: "OpenAI API Key",
},
Usage: {
2023-04-05 19:56:54 +00:00
Title: "余额查询",
SubTitle(used: any, total: any) {
return `本月已使用 $${used},订阅总额 $${total}`;
},
IsChecking: "正在检查…",
Check: "重新检查",
2023-04-05 19:56:54 +00:00
NoAccess: "输入 API Key 或访问密码查看余额",
},
AccessCode: {
2023-04-05 19:56:54 +00:00
Title: "访问密码",
SubTitle: "管理员已开启加密访问",
2023-04-05 19:56:54 +00:00
Placeholder: "请输入访问密码",
},
2023-03-21 16:20:32 +00:00
Model: "模型 (model)",
Temperature: {
Title: "随机性 (temperature)",
2023-04-23 17:15:44 +00:00
SubTitle: "值越大,回复越随机",
2023-03-20 16:17:45 +00:00
},
2023-03-21 16:20:32 +00:00
MaxTokens: {
Title: "单次回复限制 (max_tokens)",
SubTitle: "单次交互所用的最大 Token 数",
2023-03-20 16:17:45 +00:00
},
PresencePenalty: {
2023-03-21 16:20:32 +00:00
Title: "话题新鲜度 (presence_penalty)",
SubTitle: "值越大,越有可能扩展到新话题",
2023-03-20 16:17:45 +00:00
},
2023-03-21 16:20:32 +00:00
},
Store: {
DefaultTopic: "新的聊天",
BotHello: "有什么可以帮你的吗",
Error: "出错了,稍后重试吧",
Prompt: {
2023-05-20 17:28:09 +00:00
History: (content: string) => "这是历史聊天总结作为前情提要:" + content,
2023-03-21 16:20:32 +00:00
Topic:
2023-03-29 16:02:50 +00:00
"使用四到五个字直接返回这句话的简要主题,不要解释、不要标点、不要语气词、不要多余文本,如果没有主题,请直接返回“闲聊”",
2023-03-21 16:20:32 +00:00
Summarize:
2023-05-20 17:28:09 +00:00
"简要总结一下对话内容,用作后续的上下文提示 prompt控制在 200 字以内",
2023-03-20 16:17:45 +00:00
},
2023-03-21 16:20:32 +00:00
},
Copy: {
Success: "已写入剪切板",
Failed: "复制失败,请赋予剪切板权限",
},
2023-04-02 18:02:03 +00:00
Context: {
2023-05-20 17:28:09 +00:00
Toast: (x: any) => `包含 ${x} 条预设提示词`,
2023-04-22 17:27:15 +00:00
Edit: "当前对话设置",
Add: "新增预设对话",
2023-05-20 17:44:59 +00:00
Clear: "上下文已清除",
Revert: "恢复上下文",
2023-04-02 18:02:03 +00:00
},
Plugin: {
Name: "插件",
},
2023-04-26 17:16:21 +00:00
Mask: {
Name: "面具",
2023-04-26 17:16:21 +00:00
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: "角色名称",
Sync: {
Title: "使用全局设置",
SubTitle: "当前对话是否使用全局模型设置",
Confirm: "当前对话的自定义设置将会被自动覆盖,确认启用全局设置?",
},
HideContext: {
Title: "隐藏预设对话",
SubTitle: "隐藏后预设对话不会出现在聊天界面",
},
2023-04-26 17:16:21 +00:00
},
},
NewChat: {
Return: "返回",
Skip: "直接开始",
NotShow: "不再展示",
ConfirmNoShow: "确认禁用?禁用后可以随时在设置中重新启用。",
2023-04-26 17:16:21 +00:00
Title: "挑选一个面具",
SubTitle: "现在开始,与面具背后的灵魂思维碰撞",
2023-05-01 19:10:13 +00:00
More: "查看全部",
2023-04-26 17:16:21 +00:00
},
2023-05-01 18:26:43 +00:00
UI: {
Confirm: "确认",
Cancel: "取消",
Close: "关闭",
Create: "新建",
Edit: "编辑",
},
2023-03-21 16:20:32 +00:00
};
2023-03-20 16:17:45 +00:00
2023-05-18 16:59:04 +00:00
type DeepPartial<T> = T extends object
? {
[P in keyof T]?: DeepPartial<T[P]>;
}
: T;
export type LocaleType = DeepPartial<typeof cn>;
export type RequiredLocaleType = typeof cn;
2023-03-20 16:17:45 +00:00
2023-03-21 16:20:32 +00:00
export default cn;