Skip to content

Commit

Permalink
build(arguments-builder): new args
Browse files Browse the repository at this point in the history
Update arguments-builder.config.ts
  • Loading branch information
VirgilClyne committed Oct 31, 2024
1 parent 2bbd481 commit f8af470
Showing 1 changed file with 162 additions and 11 deletions.
173 changes: 162 additions & 11 deletions arguments-builder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig({
},
{
key: "Type",
name: "[字幕]启用类型",
name: "[字幕] 启用类型",
defaultValue: "Official",
type: "string",
options: [
Expand All @@ -59,7 +59,7 @@ export default defineConfig({
},
{
key: "Types",
name: "[歌词]启用类型",
name: "[歌词] 启用类型",
defaultValue: ["Translate"],
type: "array",
options: [
Expand All @@ -73,21 +73,14 @@ export default defineConfig({
},
{
key: "AutoCC",
name: "[字幕]自动显示",
name: "[字幕] 自动显示",
defaultValue: true,
type: "boolean",
description: "是否总是自动开启字幕显示。",
},
{
key: "ShowOnly",
name: "[字幕]只显示“自动翻译”字幕",
defaultValue: false,
type: "boolean",
description: "是否仅显示“自动翻译”后的字幕,不显示源语言字幕。",
},
{
key: "Position",
name: "[字幕]主语言(源语言)字幕位置",
name: "[字幕] 主语言(源语言)字幕位置",
defaultValue: "Forward",
type: "string",
options: [
Expand All @@ -102,5 +95,163 @@ export default defineConfig({
],
description: "主语言(源语言)字幕的显示位置。",
},
{
key: "Languages[0]",
name: "[翻译器] 主语言(源语言)",
defaultValue: "AUTO",
type: "string",
boxJsType: "selects",
description:
"仅当源语言识别不准确时更改此选项。",
options: [
{
"key": "AUTO",
"label": "自动 - Automatic"
},
{
"key": "ZH",
"label": "中文(自动)"
},
{
"key": "ZH-HANS",
"label": "中文(简体)"
},
{
"key": "ZH-HK",
"label": "中文(香港)"
},
{
"key": "ZH-HANT",
"label": "中文(繁体)"
},
{
"key": "EN",
"label": "English - 英语(自动)"
},
{
"key": "ES",
"label": "Español - 西班牙语(自动)"
},
{
"key": "JA",
"label": "日本語 - 日语"
},
{
"key": "KO",
"label": "한국어 - 韩语"
},
{
"key": "DE",
"label": "Deutsch - 德语"
},
{
"key": "FR",
"label": "Français - 法语"
},
{
"key": "TR",
"label": "Türkçe - 土耳其语"
},
{
"key": "KM",
"label": "ភាសាខ្មែរ - 高棉语"
}
],
},
{
key: "Languages[1]",
name: "[翻译器] 副语言(目标语言)",
defaultValue: "ZH",
type: "string",
boxJsType: "selects",
description:
"请指定翻译歌词的目标语言。",
options: [
{
"key": "ZH",
"label": "中文(自动)"
},
{
"key": "ZH-HANS",
"label": "中文(简体)"
},
{
"key": "ZH-HK",
"label": "中文(香港)"
},
{
"key": "ZH-HANT",
"label": "中文(繁体)"
},
{
"key": "EN",
"label": "English - 英语(自动)"
},
{
"key": "EN-US",
"label": "英语(美国)"
},
{
"key": "ES",
"label": "Español - 西班牙语(自动)"
},
{
"key": "ES-ES",
"label": "Español - 西班牙语"
},
{
"key": "ES-419",
"label": "西班牙语(拉丁美洲)"
},
{
"key": "JA",
"label": "日本語 - 日语"
},
{
"key": "KO",
"label": "한국어 - 韩语"
},
{
"key": "DE",
"label": "Deutsch - 德语"
},
{
"key": "FR",
"label": "Français - 法语"
},
{
"key": "TR",
"label": "Türkçe - 土耳其语"
},
{
"key": "KM",
"label": "ភាសាខ្មែរ - 高棉语"
}
],
},
{
key: "Vendor",
name: "[翻译器] 服务商API",
defaultValue: "Google",
type: "string",
description: "请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。",
options: [
{
key: "Google",
label: "Google Translate",
},
{
key: "Microsoft",
label: "Microsoft Translator(需填写API)",
},
],
},
{
key: "ShowOnly",
name: "[翻译器] 只显示“自动翻译”字幕",
defaultValue: false,
type: "boolean",
description: "是否仅显示“自动翻译”后的字幕,不显示源语言字幕。",
},
],
});

0 comments on commit f8af470

Please sign in to comment.