feat: add preinit setting
This commit is contained in:
@@ -1397,4 +1397,9 @@ export const I18N = {
|
||||
en: `If you do not fully understand the default prompt, please do not modify it at will, otherwise the translation may fail.`,
|
||||
zh_TW: `在未完全理解預設Prompt的情況下,請勿隨意修改,否則可能翻譯失敗。`,
|
||||
},
|
||||
if_pre_init: {
|
||||
zh: `是否预初始化`,
|
||||
en: `Whether to pre-initialize`,
|
||||
zh_TW: `是否預初始化`,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -109,7 +109,7 @@ export const DEFAULT_SUBRULES_LIST = [
|
||||
},
|
||||
];
|
||||
|
||||
export const DEFAULT_MOUSEHOVER_KEY = ["ControlLeft"];
|
||||
export const DEFAULT_MOUSEHOVER_KEY = ["KeyQ"];
|
||||
export const DEFAULT_MOUSE_HOVER_SETTING = {
|
||||
useMouseHover: true, // 是否启用鼠标悬停翻译
|
||||
mouseHoverKey: DEFAULT_MOUSEHOVER_KEY, // 鼠标悬停翻译组合键
|
||||
@@ -148,4 +148,5 @@ export const DEFAULT_SETTING = {
|
||||
transInterval: 100, // 翻译等待时间
|
||||
langDetector: OPT_TRANS_MICROSOFT, // 远程语言识别服务
|
||||
mouseHoverSetting: DEFAULT_MOUSE_HOVER_SETTING, // 鼠标悬停翻译
|
||||
preInit: true, // 是否预加载脚本
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user