A Chrome extension that provides full-page text translation using Chrome's new Translation APIs (Chrome 138+).
- Full-page translation: Translates all visible text on web pages
- Selection translation: if you select a portion of the page, and then choose Translate Selection from the popup, it will translate only the selected portion
- Automatic language model download: Google's new translation API relies on locally stored language models. If you haven't downloaded the models yet, they'll be downloaded as needed when you select new target languages
- ARIA attributes translation: Translates accessibility attributes like
aria-label
,title
,alt
, etc. - Built-in Translation API: Uses Chrome's native Translation API for fast, offline translation
- Language auto-detection: Automatically detects source language
- Restore functionality: Easily restore original text
- Multiple language support: Supports 12+ languages
- Works with iframes: You should be able to use this with iframed content.
- Chrome 138+ (Desktop only)
- At least 22 GB free storage
- GPU with 4+ GB VRAM
- Unmetered network connection (for initial model download)
- Clone this repository
- Open Chrome and go to
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked" and select the extension directory
- Add icons to the
icons/
directory (16x16, 32x32, 48x48, 128x128 PNG files)
- Navigate to any webpage
- Click the YRA Translator extension icon
- Select source and target languages
- Click "Translate Page"
- Use "Restore" to return to original text
The extension automatically checks if the Translation API is available. If not available, you may need to:
- Update to Chrome 138+
- Ensure hardware requirements are met
- Wait for the translation model to download
manifest.json
- Extension configurationcontent.js
- Main translation logicinjected.js
- Translation API wrapperpopup.html/js
- Extension popup interfacebackground.js
- Service worker for notificationsicons/
- Extension icons (add your own)
English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean, Chinese, Arabic, Hindi