Skip to content

weiland/translation-address-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live text translations in Firefox address bar

Based on https://github.com/nolenroyalty/wardle / https://eieio.games/nonsense/implementing-wordle-in-the-firefox-address-bar/ this is a proof of concept, that you can do translations as well.

Demonstration video

demonstration.mov

Prerequisites

This is a quick demo implemented using Deno, so you should have Deno installed.

  1. Clone this repo and cd into it.
  2. Obtain an API Key (Auth Key) from DeepL.
  3. Create .env file by running cp .env.example .env.
  4. Enter DeepL Key in .env file.

Run

Start the webserver:

deno task dev

By default, the server runs at http://localhost:3003/.

Now, you can go to http://localhost:3003/ and in Firefox you can add this site as a search engine at the bottom where the other search engines show up. You can also give this search engine a shortcut (@translate or @t or something like that).

Then you can use the translations in the address bar.