Translation Test
Watch the Video


This example bookmarklet performs a DeepL Translation on any highlighted text in the web browser window.
The 1st one is to FR
The 2nd one is to EN
In normal use, the following JavaScript code would be installed to a bookmark in a browser bookmarks toolbar.
From then on, after selecting any text, clicking the bookmarklet performs the Translation in a new Window.
If no text on the page has been selected, you will be propmted to supply the text for the translation.

Cet exemple de bookmarklet effectue une traduction DeepL sur tout texte mis en evidence dans la fenetre du navigateur web.
Le 1er est au FR
Le 2e est au EN
ans une utilisation normale, le code JavaScript suivant serait installe sur un signet dans la barre d'outils des signets d'un navigateur.
Des lors, apres avoir selectionne un texte quelconque, un clic sur le signet effectue la traduction dans une nouvelle fenetre.
Si aucun texte de la page n'a ete selectionne, il vous sera propose de fournir le texte pour la traduction.


--> FR

javascript:(function() { function se(d) { return d.selection ? d.selection.createRange().text : d.getSelection() } s = se(document); for (i=0; i< frames.length && (s==null || s==''); i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter%20Translation%20text%20for%20DeepL Translate to French',''); open('https://www.deepl.com/translator#any/fr/' + (s)).focus(); })();



--> EN

javascript:(function() { function se(d) { return d.selection ? d.selection.createRange().text : d.getSelection() } s = se(document); for (i=0; i< frames.length && (s==null || s==''); i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter%20Translation%20text%20for%20DeepL Translate to English',''); open('https://www.deepl.com/translator#any/en/' + (s)).focus(); })();






Dieses Beispiel-Bookmarklet fuhrt eine DeepL Ubersetzung eines beliebigen markierten Textes im Webbrowser-Fenster durch. 1. von EN nach FRDer 2. von FR nach ENIm Normalfall wird der folgende JavaScript-Code in einem Lesezeichen in der Symbolleiste des Browsers installiert, so dass nach der Auswahl eines beliebigen Textes durch Anklicken des Bookmarklets die Ubersetzung in einem neuen Fenster ausgefuhrt wird.