Chrome-extension for translating foreign languages at the viewing web page context. Translate from 100+ foreign languages to your native directly on web-site you're reading or insert text in the action window (via extension's icon on chrome's toolbar).
1) Many ways to get translation from texts within web page:
select text and get translation right after one of the following actions:
Alt + Shift + X
by default)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). With this feature it is possible to get auto-translation by block of text at the page just by pressing the hotkey when mouse over it!
Translations in PDF files are also supported, but it works only from context menu (turned off by default in the settings)
due technical restrictions of how chrome renders PDF-files.
Select a text in opened file (be sure it's not an image file inside pdf content),
then click mouse right button on the selection and choose "XTranslate -> Translate with ..." from the menu.
2) Listen text-to-speech (TTS) for all supported translation vendors
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 globals (prerequisites): 1) node (>=16 && <=18) 2) brew install yarn
3) yarn (from project root, install all dependencies)
Steps to build (compile) extension:
1) npm run build
2) see /dist
and /dist-firefox
(depends on the branch) folder(s) for ready-to use extension source directory with own manifest.json
Other commands to dev and test:
1) npm run dev
- runs project in dev/watch mode
2) npm run test
- runs available jest tests
Powered by typescript, react, mobx, webpack, sass, lodash and some others. Made with ♥