Releases: kany2000/QuickTranslate
Release list
v3.3.2 - 修复部分模块的BUG
QuickTranslate v3.3.2
🔧 模塊開關修復 / Module Toggle Fix
中文:修復划詞翻譯模塊在 🧩 模塊系統中開關後無法使用的問題。原因是 popup.js 引用了不存在的 DOM 元素,導致 TypeError 拋出,toggleModule 消息從未發送到 Service Worker。
English: Fixed the module toggle for the Quick Panel in the 🧩 Modules system. A missing DOM element reference in popup.js caused a TypeError that prevented the toggleModule message from ever reaching the Service Worker.
⚡ 設置保存穩定性 / Settings Save Stability
中文:修復高級設置中 quickPanelEnabled / hoverTranslationEnabled 因 DOM 元素缺失導致保存崩潰的問題。現在優雅降級到 this.settings 回退值。
English: Fixed a crash when saving advanced settings where quickPanelEnabled / hoverTranslationEnabled references to non-existent DOM elements caused a crash. Now gracefully falls back to the in-memory this.settings values.
完整更新日志見 CHANGELOG.md / Full changelog at CHANGELOG.md
v3.3.1 - bug紧急修复
QuickTranslate v3.3.1
📷 截圖翻譯精度優化 / Screenshot Precision
中文:框選文字提取改為字符級定位,只提取真正在選框範圍內的字符。不再因文本節點矩形覆蓋整段而提取整段內容。
English: Text extraction now uses character-level positioning. Only characters actually within the selection box are extracted — no more grabbing entire paragraphs when only a portion is selected.
🌐 語言檢測修復 / Language Detection Fix
中文:拉丁文字(德語、法語、西班牙語等)不再被錯誤檢測為英文。改為使用 auto 讓 Google 自動檢測,翻譯更準確。
English: Latin-script languages (German, French, Spanish, etc.) are no longer incorrectly detected as English. Now uses auto to let Google detect the language automatically for more accurate translations.
⚡ 穩定性修復 / Stability Fixes
中文:修復了 Extension context invalidated 錯誤在控制台反覆出現的問題。Promise 拒絕現在靜默處理,不會影響使用。
English: Fixed the persistent Extension context invalidated console error. Promise rejections are now silently handled without affecting functionality.
🔧 其他修復 / Other Fixes
- 框選容差從 5px 降至 2px,選取更精準 / Selection tolerance reduced from 5px to 2px
- Service Worker 全局錯誤捕獲 / Global error handler for SW stability
完整更新日志見 CHANGELOG.md / Full changelog at CHANGELOG.md
v3.3.0 - 界面更新bug修复
QuickTranslate v3.3.0
🌐 模塊名稱多語言 / Module Name i18n
中文:所有內置模塊的名稱現在支援 5 種界面語言。切換語言時,模塊列表中的名稱會自動跟隨變化。
English: All built-in module names now support 5 interface languages. Module names in the module list update automatically when you switch the UI language.
⚡ Service Worker 穩定性 / SW Stability
中文:修復了「Extension context invalidated」導致 Service Worker 反覆崩潰的問題。新增全局錯誤捕獲,未處理的 Promise rejection 不再讓 SW 停止工作。
English: Fixed the "Extension context invalidated" error that caused the Service Worker to crash repeatedly. Added global error handlers for unhandled Promise rejections.
🖼️ 截圖翻譯支援多引擎 / Screenshot Multi-Engine
中文:截圖翻譯現在也會檢查多引擎對比開關,使用多引擎中第一個成功的結果。
English: Screenshot translate now respects the multi-engine setting, using the first successful result from all available engines.
🧹 UI 清理 / UI Cleanup
中文:移除了彈窗主界面的划詞/懸浮/選詞即譯開關,所有模式統一由 🧩 模塊系統管理。
English: Removed mode toggles from the main popup. All modes managed exclusively through the Module System.
🔧 其他修復 / Other Fixes
- 高級設置按鈕無法點擊 / Settings button not clickable
- 多引擎下 LLM 結果不顯示 / LLM results missing in multi-engine
- 「內聯翻譯」更名為「選詞即譯」 / Renamed to "Select-to-Translate"
完整更新日志見 CHANGELOG.md / Full changelog at CHANGELOG.md
v3.2.0
QuickTranslate v3.2.0 — Inline Translate & UX Polish
📝 內聯翻譯 / Inline Translate
中文:選中網頁文字後自動翻譯,結果以可拖拽浮窗顯示在選區附近。點擊頂部關閉,拖動內容區域移動。支援複製和收藏。
English: Select any text on a webpage and get an instant translation in a draggable popup near your selection. Click the header to close, drag the body to move. Supports copy and save.
⚙️ 彈窗快捷開關 / Quick Settings Toggle
中文:主界面新增內聯翻譯開關,不用去模塊系統也能快速啟用/關閉。
English: A new toggle for Inline Translate is now available on the main popup — no need to open the module manager.
🌐 多語言支援 / Multi-language Support
中文:內聯翻譯相關 UI 現在支援全部 5 種界面語言(繁中、簡中、英文、日文、韓文)。
English: Inline Translate UI now supports all 5 interface languages (Traditional Chinese, Simplified Chinese, English, Japanese, Korean).
🔧 清理與優化 / Cleanup & Polish
- 移除內聯翻譯關閉按鈕的殘留死代碼
- 優化關閉檢測機制(header 點擊關閉更可靠)
- 修復
handleClickOutside中不存在的 class 引用
完整更新日志見 CHANGELOG.md / Full changelog at CHANGELOG.md
v3.1.0 — Dark Mode, Processor Modules & Context Menu
QuickTranslate v3.1.0
🌙 暗色模式 / Dark Mode
中文:自动跟随系统主题切换,弹窗、快捷面板、浮动面板、截图界面全部适配深色背景。
English: Automatically follows your system theme. Popup, quick panel, float panel, and screenshot UI all support dark backgrounds seamlessly.
🧹 文本净化 / Text Sanitizer
中文:选中网页文字时常带有多余空格、换行和 HTML 实体残留。新的文本净化处理器在翻译前自动清理这些杂质,输入更干净、翻译更准确。
English: When selecting text from web pages, extra whitespace, line breaks, and HTML entities often come along. The new sanitizer processor automatically cleans all of that before translation for better results.
🛡️ 代码保护 / Code Protection
中文:翻译技术内容时,反引号包裹的代码块会被自动识别并保护——翻译引擎只处理周围文字,代码完整保留。
English: Code blocks wrapped in backticks are now automatically detected and protected — the translation engine works on the surrounding text while your code stays intact.
💾 翻译缓存 / Translation Cache
中文:相同文字不再重复请求翻译 API。LRU 缓存 200 条,二次翻译瞬间出结果。
English: Repeated translations skip the API entirely. LRU cache with 200 entries makes subsequent translations of the same text instant.
🖱️ 右键翻译 / Context Menu Translation
中文:选中文字右键选择「QuickTranslate 翻译」,弹出可拖拽的翻译气泡,支持复制和收藏。
English: Right-click any selected text and choose "QuickTranslate 翻译" for a draggable translation bubble with copy and save buttons.
🔧 Google 翻译 429 修复 / Google Translate 429 Fix
中文:Google 免费 API 频繁遇到限流(429)。切换为 clients5.google.com + dict-chrome-ex 参数,并加入 3 次自动重试(1s → 3s → 5s)。
English: Fixed Google's free API rate limiting (HTTP 429). Switched to clients5.google.com with client=dict-chrome-ex parameters and added automatic retry logic (1s → 3s → 5s backoff).
📦 内置模块更新 / Built-in Modules Update
| 模块 / Module | 类型 / Type | 说明 / Description |
|---|---|---|
| 文本净化 Text Sanitizer | processor | 自动清理空白和 HTML 实体 |
| 代码保护 Code Protector | processor | 保护代码不被翻译破坏 |
| 翻译缓存 Translation Cache | service | LRU 缓存 200 条加速 |
完整更新日志见 CHANGELOG.md / Full changelog at CHANGELOG.md.
v3.0.0
QuickTranslate v3.0.0 — 模塊系統正式發布
🎉 里程碑:模塊化生態系統
這是 QuickTranslate 歷史上最大的一次更新。我們重新架構了整個插件,引入模塊化系統,讓 QuickTranslate 從一個翻譯工具變成一個可擴展的翻譯平台。
🧩 模塊系統
核心架構
- EventBus — 事件驅動的通訊層,所有模塊通過事件交換訊息
- ModuleLoader — 模塊註冊、激活、停用的生命週期管理
- Offscreen Sandbox — 安全隔離的第三方代碼執行環境
內置模塊(8 個)
| 模塊 | 類型 | 說明 |
|---|---|---|
| Google Translate | 翻譯引擎 | Google 免費翻譯 API |
| Microsoft Translator | 翻譯引擎 | Microsoft Translator API |
| GLM 大模型 | 翻譯引擎 | 智譜 GLM 大語言模型 |
| 自定義 LLM | 翻譯引擎 | OpenAI 兼容的自定義 LLM |
| 划詞翻譯 | 交互模式 | 選中文字即顯示翻譯按鈕 |
| 浮動翻譯面板 | 交互模式 | Ctrl+Shift+Q 浮動面板 |
| 翻譯歷史記錄 | 服務 | 翻譯歷史存儲與查詢 |
| 生詞本 | 服務 | 生詞收藏與管理 |
開發者生態
- CLI 腳手架工具 —
node packages/create-qt-module/index.js生成模塊模板 - 模塊商店 — 宣傳頁面已嵌入模塊展示和下載入口
- 開發者文檔 — 多語言文檔頁面(簡中/繁中/EN/日/韓)
- 多語言支持 — 文檔內容跟隨頁面語言自動切換
✨ 其他新增功能
- 模塊獨立開關 — 每個模塊可單獨啟用/停用
- 模塊設置 UI — 每個模塊可自定義配置(API Key、模型選擇等)
- 翻譯用量統計 — 每個引擎的翻譯次數、字數、成功率一目了然
- 快捷鍵同步 — 從 chrome://extensions/shortcuts 讀取實際快捷鍵
- 開關同步設定 — 關閉模塊時自動切換翻譯服務選項
🔧 技術改進
- 模塊之間通過 EventBus 通訊,不再直接耦合
- 第三方模塊在沙箱中執行,不影響主進程
- 離線文檔頁面(offscreen document)心跳保活
- 服務模塊(歷史/生詞本)從背景腳本解耦為獨立模塊
📦 下載
- QuickTranslate-v3.0.0-user.zip — Chrome 商店上傳用
- QuickTranslate-v3.0.0-dev.zip — 含開發工具
📖 文檔
QuickTranslate v3.0.0 — 2026-06-29