8000 GitHub - ixrock/XTranslate: Easy translate text on web pages (chrome extension)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ixrock/XTranslate

Repository files navigation

XTranslate

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.

Screenshot See more screenshots here.

Features:

  1. 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!
  • 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).

  1. Translate texts in PDF files (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.

  2. Listen text-to-speech (TTS) for supported translation providers (e.g. Google, OpenAI)

  3. Create your unique design (theme) for the popup with translation results

  4. Customize ways of getting translation and other options in app's settings

  5. Type any text in the app's action window and get translation with dictionary support for single words

  6. Save your favorite language pairs (from -> to) as bookmarks for quick access (Cmd/Alt + Shift + click at the language list item to save and keep on top)

  7. History of translations (turned off by default)

Install extension:

Available translation providers:

  • Google - ready to use after installation
  • Bing - ready to use after installation
  • DeepL (register and provide free api-key, 500K chars/month)
  • OpenAI (register, top-up balance and create api-key for the extension)
  • Grok (register, top-up balance and create api-key)
  • DeepSeek (register, top-up balance and create api-key)
  • Gemini (create free-tier api-key)

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"

How to build/contribute to project:

Prerequisites:

  1. Install Node.js (v23+)
  2. Install project dependencies npm install

NPM-script commands:

  1. npm run dev - run project in development / watch mode
  2. npm run build - compile and pack ready to use extension in /dist
  3. npm run test - run available unit-tests

Powered by Typescript, ReactJS, MobX, Webpack, Scss, and some others. Made with ♥

0