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
Update boxjs.settings.json
  • Loading branch information
VirgilClyne committed Oct 31, 2024
1 parent 0376b1c commit 446782a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion arguments-builder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,26 @@ export default defineConfig({
},
],
},
{
key: "Vendor",
name: "[翻译器] 服务商API",
defaultValue: "Google",
type: "string",
options: [
{
"key": "Google",
"label": "Google Translate"
},
{
"key": "Microsoft",
"label": "Microsoft Translator(需填写API)"
},
],
description: "请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。",
},
{
key: "ShowOnly",
name: "[翻译字幕] 只显示翻译后字幕",
name: "[翻译器] 只显示翻译后字幕",
defaultValue: false,
type: "boolean",
description: "开启后仅显示翻译字幕,不做字幕合并操作。",
Expand Down
2 changes: 1 addition & 1 deletion template/boxjs.settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":"@DualSubs.YouTube.Settings.Switch","name":"总功能开关","type":"boolean","val":true,"desc":"是否启用此APP修改"},{"id":"@DualSubs.YouTube.Settings.Types","name":"[字幕] 启用类型","type":"checkboxes","val":["Official","Translate"],"items":[{"key":"Official","label":"官方字幕(合成器)"},{"key":"Translate","label":"翻译字幕(翻译器)"}],"desc":"请选择要添加的字幕选项,如果为标准播放器,则会在字幕选项中新增勾选字幕选项。"},{"id":"@DualSubs.YouTube.Settings.Languages[0]","name":"[字幕] 主语言(源语言)","type":"selects","val":"AUTO","items":[{"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":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“主语言”字幕存在时,将生成“主语言/副语言(翻译)”与“主语言(外挂)”的字幕或字幕选项。"},{"id":"@DualSubs.YouTube.Settings.Languages[1]","name":"[字幕] 副语言(目标语言)","type":"selects","val":"ZH","items":[{"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":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“副语言”字幕存在时,将生成“副语言/主语言(官方)”的字幕或字幕选项。"},{"id":"@DualSubs.YouTube.Settings.ShowOnly","name":"[翻译字幕] 只显示翻译后字幕","type":"boolean","val":false,"desc":"开启后仅显示翻译字幕,不做字幕合并操作。"}]
[{"id":"@DualSubs.YouTube.Settings.Switch","name":"总功能开关","type":"boolean","val":true,"desc":"是否启用此APP修改"},{"id":"@DualSubs.YouTube.Settings.Types","name":"[字幕] 启用类型","type":"checkboxes","val":["Official","Translate"],"items":[{"key":"Official","label":"官方字幕(合成器)"},{"key":"Translate","label":"翻译字幕(翻译器)"}],"desc":"请选择要添加的字幕选项,如果为标准播放器,则会在字幕选项中新增勾选字幕选项。"},{"id":"@DualSubs.YouTube.Settings.Languages[0]","name":"[字幕] 主语言(源语言)","type":"selects","val":"AUTO","items":[{"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":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“主语言”字幕存在时,将生成“主语言/副语言(翻译)”与“主语言(外挂)”的字幕或字幕选项。"},{"id":"@DualSubs.YouTube.Settings.Languages[1]","name":"[字幕] 副语言(目标语言)","type":"selects","val":"ZH","items":[{"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":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“副语言”字幕存在时,将生成“副语言/主语言(官方)”的字幕或字幕选项。"},{"id":"@DualSubs.YouTube.Settings.Vendor","name":"[翻译器] 服务商API","type":"selects","val":"Google","items":[{"key":"Google","label":"Google Translate"},{"key":"Microsoft","label":"Microsoft Translator(需填写API)"}],"desc":"请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。"},{"id":"@DualSubs.YouTube.Settings.ShowOnly","name":"[翻译器] 只显示翻译后字幕","type":"boolean","val":false,"desc":"开启后仅显示翻译字幕,不做字幕合并操作。"}]

0 comments on commit 446782a

Please sign in to comment.