This Firefox extension provides added translation to SVT's Swedish subtitles.
It uses Libretranslate local instance to translate the text.
By default the text will be translated to English, but other languages can be supported easily.
-
Docker
-
Firefox
-
At
about:debugging
url in Firefox select This Firefox in the left side panel. -
Then you should click the Load Temporary Add-on button and select any file from the project to load the extension for this session into the browser.
-
Start Docker and use the provided
start_libretranslate.sh
script to run Libretranslate
docker run -ti --rm -p 5000:5000 --name libretranslate libretranslate/libretranslate --load-only "en,sv"
- Click the
Activete Translation
button after you started the video. It is a shortcoming of the script that it can not handle errors and other corner cases but it work :D
Many thanks to the people at Libretranslate and Argos Translate