添加可以选择悬浮按钮单击操作的设置选项 (#313)

* Add an option in Settings to provide choices for the FAB Single Click action.

* Complete Translation

---------

Co-authored-by: 1030283726 <1030283726@qq.com>
This commit is contained in:
Zack C
2025-09-21 00:50:39 +10:00
committed by GitHub
parent d39a016d5f
commit 563242c5f1
4 changed files with 40 additions and 3 deletions

View File

@@ -847,7 +847,21 @@ export const I18N = {
en: `Hide Fab Button`,
zh_TW: `隱藏懸浮按鈕`,
},
fab_click_action: {
zh: `单击悬浮按钮动作`,
en: `Single Click Fab Action`,
zh_TW: `單擊懸浮按钮動作`,
},
fab_click_menu: {
zh: `弹出菜单`,
en: `Popup Menu`,
zh_TW: `彈出選單`,
},
fab_click_translate: {
zh: `直接翻译`,
en: `Translate`,
zh_TW: `直接翻譯`,
},
hide_tran_button: {
zh: `隐藏翻译按钮`,
en: `Hide Translate Button`,

View File

@@ -120,6 +120,7 @@ export const DEFAULT_SETTING = {
httpTimeout: DEFAULT_HTTP_TIMEOUT,
clearCache: false, // 是否在浏览器下次启动时清除缓存
injectRules: true, // 是否注入订阅规则
fabClickAction: 0, // 悬浮按钮点击行为
// injectWebfix: true, // 是否注入修复补丁(作废)
// detectRemote: false, // 是否使用远程语言检测(移至rule作废)
// contextMenus: true, // 是否添加右键菜单(作废)