stash code

This commit is contained in:
lloydzhou
2024-08-30 17:31:20 +08:00
parent cac99e3908
commit 271f58d9cf
7 changed files with 246 additions and 194 deletions

View File

@@ -509,10 +509,6 @@ const cn = {
Clear: "上下文已清除",
Revert: "恢复上下文",
},
Plugin: {
Name: "插件",
Artifacts: "Artifacts",
},
Discovery: {
Name: "发现",
},
@@ -534,6 +530,30 @@ const cn = {
View: "查看",
},
},
Plugin: {
Name: "插件",
Artifacts: "Artifacts",
Page: {
Title: "插件",
SubTitle: (count: number) => `${count} 个插件`,
Search: "搜索插件",
Create: "新建",
},
Item: {
Info: (count: number) => `${count} 方法`,
View: "查看",
Edit: "编辑",
Delete: "删除",
DeleteConfirm: "确认删除?",
},
EditModal: {
Title: (readonly: boolean) => `编辑插件 ${readonly ? "(只读)" : ""}`,
Download: "下载",
Content: "OpenAPI Schema",
Method: "方法",
Error: "格式错误",
},
},
Mask: {
Name: "面具",
Page: {

View File

@@ -517,10 +517,6 @@ const en: LocaleType = {
Clear: "Context Cleared",
Revert: "Revert",
},
Plugin: {
Name: "Plugin",
Artifacts: "Artifacts",
},
Discovery: {
Name: "Discovery",
},
@@ -544,6 +540,7 @@ const en: LocaleType = {
},
Plugin: {
Name: "Plugin",
Artifacts: "Artifacts",
Page: {
Title: "Plugins",
SubTitle: (count: number) => `${count} plugins`,
@@ -551,8 +548,7 @@ const en: LocaleType = {
Create: "Create",
},
Item: {
Info: (count: number) => `${count} plugins`,
Chat: "Chat",
Info: (count: number) => `${count} method`,
View: "View",
Edit: "Edit",
Delete: "Delete",
@@ -562,25 +558,9 @@ const en: LocaleType = {
Title: (readonly: boolean) =>
`Edit Plugin ${readonly ? "(readonly)" : ""}`,
Download: "Download",
Clone: "Clone",
},
Config: {
Avatar: "Bot Avatar",
Name: "Bot Name",
Sync: {
Title: "Use Global Config",
SubTitle: "Use global config in this chat",
Confirm: "Confirm to override custom config with global config?",
},
HideContext: {
Title: "Hide Context Prompts",
SubTitle: "Do not show in-context prompts in chat",
},
Share: {
Title: "Share This Plugin",
SubTitle: "Generate a link to this mask",
Action: "Copy Link",
},
Content: "OpenAPI Schema",
Method: "Method",
Error: "OpenAPI Schema Error",
},
},
Mask: {