input box trans

This commit is contained in:
Gabe Yuan
2023-09-14 10:59:50 +08:00
parent 14ca13e31d
commit 76f54461e7
6 changed files with 42 additions and 8 deletions

View File

@@ -571,6 +571,10 @@ export const I18N = {
zh: `触发翻译快捷键`,
en: `Trigger Translation Shortcut Keys`,
},
trigger_trans_shortcut_help: {
zh: `不设则默认为单击快捷键“Alt+i”`,
en: `If not set, the default is to click the shortcut key "Alt+i"`,
},
shortcut_press_count: {
zh: `快捷键连击次数`,
en: `Shortcut Press Nunber`,

View File

@@ -199,12 +199,14 @@ export const GLOBLA_RULE = {
textDiyStyle: "",
};
// 输入框翻译
export const DEFAULT_INPUT_SHORTCUT = ["Alt", "i"];
export const DEFAULT_INPUT_RULE = {
transOpen: true,
translator: OPT_TRANS_MICROSOFT,
fromLang: "auto",
toLang: "en",
triggerShortcut: ["Alt", "i"],
triggerShortcut: DEFAULT_INPUT_SHORTCUT,
triggerCount: 1,
};