From 6683084cce02ec23175e9d9d230095b7f47e43c4 Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Thu, 31 Oct 2024 19:42:32 +0800 Subject: [PATCH] build(arguments-builder): new args Update arguments-builder.config.ts --- arguments-builder.config.ts | 39 ++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/arguments-builder.config.ts b/arguments-builder.config.ts index c2da51e..bb2f8f3 100644 --- a/arguments-builder.config.ts +++ b/arguments-builder.config.ts @@ -42,7 +42,7 @@ export default defineConfig({ }, { key: "Type", - name: "[字幕]启用类型", + name: "[字幕] 启用类型", defaultValue: "Official", type: "string", options: [ @@ -59,7 +59,7 @@ export default defineConfig({ }, { key: "Types", - name: "[歌词]启用类型", + name: "[歌词] 启用类型", defaultValue: ["Translate"], type: "array", options: [ @@ -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: [ @@ -102,5 +95,29 @@ export default defineConfig({ ], description: "主语言(源语言)字幕的显示位置。", }, + { + 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: "是否仅显示“自动翻译”后的字幕,不显示源语言字幕。", + }, ], });