Repository navigation
EdgeTranslate 4.0.1
EdgeTranslate 4.0.1
EdgeTranslate 4.0.1 is a focused stability release for the 4.0 line. It fixes the most important regressions found after the large Material UI and PDF viewer update, especially around PDF translation, Chrome Gemini Nano behavior, translation panel readability, and extension-side error reporting.
Highlights
- Fixed AI translation from the extension PDF viewer.
- Fixed Chrome LanguageModel API requests that failed when the target language was not one of Chrome's attestation languages.
- Removed the slow Gemini Nano second-pass repair prompt that could make translations feel dramatically slower.
- Added lightweight cleanup for common untranslated fragments such as Japanese
不正/ログインleftovers in AI translation output. - Restored a more practical translation panel layout by removing pronunciation text display while keeping TTS playback.
- Fixed PDF hijacking and PDF thumbnail/sidebar behavior for local, blob, and remote PDF sources.
- Stopped PDF detection from probing ordinary non-PDF pages such as Chrome Web Store developer console URLs, avoiding noisy CORS errors.
Chrome Gemini Nano and AI Translation
- Always supplies
expectedOutputsto Chrome'sLanguageModel.create()requests so newer Chrome versions no longer report:No output language was specified in a LanguageModel API request. - Uses a safe fallback output-language hint for targets outside Chrome's currently supported attestation set while the prompt still asks for the user's actual target language.
- Skips the page-bridge route for extension-hosted PDF viewer tabs and routes Gemini Nano requests through the extension/offscreen path instead.
- Improves malformed JSON handling so raw JSON fragments and removed pronunciation fields do not leak into the translation panel.
- Keeps normal AI translation concurrency at the tuned value while avoiding the expensive extra Gemini Nano repair call.
- Adds target-language prompt guidance for multiple language families so AI output is more likely to stay in the requested writing system.
Translation Panel UX
- Removed visible pronunciation text from translation results because it created noisy, oversized cards and awkward expand/collapse behavior.
- Kept speaker/TTS actions available.
- Refined result truncation and drawer behavior so the main translation remains readable while secondary content stays less intrusive.
- Improved dark-mode handling and layout consistency for translation result cards, drawer blocks, and action icons.
- Fixed object-shaped extension errors so the UI shows meaningful error messages instead of
[object Object].
PDF Viewer Fixes
- Fixed PDF drag/drop and extension PDF hijacking paths that could open the viewer shell without loading the document contents.
- Fixed blob URL handling and repaired previously double-encoded PDF viewer file parameters.
- Improved remote PDF loading behavior for links such as arXiv PDF URLs.
- Fixed PDF thumbnail sidebar mouse scrolling.
- Preserved PDF viewer UI refinements from 4.0 while addressing regressions in content loading and navigation.
Error Handling and Detection
- Prevented the PDF detection fallback from running network probes against unrelated non-PDF pages.
- This removes noisy CORS errors from pages like
https://chrome.google.com/webstore/devconsole/.... - Improved channel error formatting for background/content/offscreen messaging failures.
Validation
npm test -w edge_translate -- --runInBandnpm run build:chromenpm run pack:chrome -w edge_translatenpm run pack:firefox -w edge_translate- Verified packaged manifests report version
4.0.1.
Release Assets
edge_translate_chrome.zipedge_translate_firefox.xpi