feat: add i18n for mask

This commit is contained in:
Yidadaa
2023-04-27 01:16:21 +08:00
parent 3cda44e05b
commit c7c58ef031
22 changed files with 890 additions and 81 deletions

View File

@@ -1,6 +1,7 @@
import { SubmitKey } from "../store/config";
import type { LocaleType } from "./index";
const jp = {
const jp: LocaleType = {
WIP: "この機能は開発中です……",
Error: {
Unauthorized:
@@ -30,6 +31,10 @@ const jp = {
return inputHints + "/ で自動補完をトリガー";
},
Send: "送信",
Config: {
Reset: "重置默认",
SaveAs: "另存为面具",
},
},
Export: {
Title: "チャット履歴をMarkdown形式でエクスポート",
@@ -69,6 +74,7 @@ const jp = {
},
Lang: {
Name: "Language",
All: "所有语言",
Options: {
cn: "简体中文",
en: "English",
@@ -182,6 +188,39 @@ const jp = {
Edit: "前置コンテキストと履歴メモリ",
Add: "新規追加",
},
Mask: {
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: "跳过",
Title: "挑选一个面具",
SubTitle: "现在开始,与面具背后的灵魂思维碰撞",
More: "搜索更多",
},
};
export default jp;