ixrock/XTranslate
À propos
Easy translate text on web pages (browser extension)
Productivité et automatisationWhat you can do
- Multiple ways to get translation from web-pages:
- full-page text translations: enable/disable auto-translation for full webpage from browser's context-menu or app's action window
- double-click on the word
- mouse-over a block of text and press hotkey defined at the extension settings (Alt + Shift + X by default), this works for input/textarea fields too!
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- +2
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalXTranslate
Chrome-based browser extension for translating languages. Translate single words with dictionary support (Google/Bing) or even full-pages from 100+ foreign languages to your native language.

Explore the XTranslate screenshot gallery.
Features:
- Multiple ways to get translation from web-pages:
- full-page text translations: enable/disable auto-translation for full webpage from browser's context-menu or app's action window
- double-click on the word
- mouse-over a block of text and press hotkey defined at the extension settings (
Alt + Shift + Xby default), this works for input/textarea fields too! - select a text at the webpage and click the XTranslate (X)-icon appeared close to the text
- just right after text selection (this option is turned off by default)
- click by selected text at the page (this option is turned off by default)
- open the app's action window (extension icon at browser's toolbar) and selected text from the page will be sent for translation
You can get even some translation from images by mouse overing the image element and
press hotkey (title or alt attributes will be used when applicable).
Translate selected text in PDF files. Enable this in Settings → Selection card (disabled by default).
This option will replace default browser's PDF-viewer and sometimes might not work correctly due CORS.
Anyway, even when it's enabled you can re-open PDF document with default viewer by clicking special Chrome-logo icon at PDF's top toolbar.Listen text-to-speech (TTS) for supported translation providers (e.g.
Google,OpenAI)Create your unique design (theme) for the popup with translation results
Open Settings to browse translation, appearance, keyboard and history preferences. Use ⌘K on macOS or Ctrl+K inside the extension to find a setting or open a section directly.
Type any text in the app's action window and get translation with dictionary support for single words
Save your favorite language pairs (from -> to) as bookmarks for quick access (
Cmd/Alt + Shift + clickat the language list item to save and keep on top)History of translations (turned off by default)
Install extension:
Available translation providers:
- Google Translate - ready to use after installation.
- Bing Translate - ready to use after installation.
- XTranslate PRO - _AI-based professional translator / paid subscription.
How to enable translator in local HTML/PDF files:
In order to work with local documents (e.g. file://path/file.pdf) you must allow access for the extension:
- open extensions page
chrome://extensions/, find XTranslate and click [Details] button - enable checkbox "Allow access to file URLs"
XTranslate architecture overview:
- All parts are connected through the Service Worker.
- Isomorphic storage updated sequentially in Service Worker only: say bye-bye to race-conditions!
- Webpack build handles 3 different targets:
WebPageContentScript(target=web),AppActionWindowScript(target=web)andBackgroundServiceWorker(target=worker).
┌─────── Web Page (Browser Tab) ────────────┐
│ Content Script │
│ — captures text selection │
│ — shows floating UI bubble (updates DOM) │
└────────▲──────────────────────────────────┘
│ messages channel / sync store
▼
┌─ Service Worker (aka Background Script) ──┐
│ — access to allowed chrome.api.* │
│ — runtime messages hub │
│ — isomorphic storage (use in any env) │
│ — api proxy (HTTP(S)/CSP/providers API) │
│ — user metrics (GA) │
└────────▲──────────────────────────────────┘
│ messages channgel / sync store
▼
┌─────────────── Action Window ─────────────┐
│ — settings and quick search │
│ — text input │
│ — history page │
└───────────────────────────────────────────┘
How to build/contribute to project:
Prerequisites:
- Install Node.js (v22+)
- Install project dependencies
npm install
NPM-script commands:
npm run dev- run project in development / watch modenpm run build- compile and pack ready to use extension in/distnpm run test- run available unit-tests
Powered by Typescript, ReactJS, MobX, Webpack, Scss, and some others. Made with ♥
Explorer des projets similaires
Chargement…