3 ms·
I've been using the extension [1] for a bit and, while it doesn't support too many languages, for the ones it does it's pretty cool to have it all running local
by Vinnl 4y ago
I've been using the extension [1] for a bit and, while it doesn't support too many languages, for the ones it does it's pretty cool to have it all running locally.
[1] https://addons.mozilla.org/firefox/addon/firefox-translations/ https://addons.mozilla.org/firefox/addon/firefox-translation...
- clairity 4y agoneat, but it looks like it was just released, so how were you using it before? as an aside, pretty sad to see the project page, https://browser.mt/ https://browser.mt/ , requiring not just javascript but specifically google connections to work. to 5 different google properties, no less.
- 0des 4y ago.mt huh thats a new one for me
- Vinnl 4y agoI work at Mozilla, so got a sneak preview (and also the first bugs) :) (Of course technically the work was out there in the open already, since it's Mozilla.) Agreed about the Bergamot website. I suspect it's not by Mozilla, but I'll see if I can ask someone to take a look, as I don't think all those connections should be necessary.
- clairity 4y agoawesome, thanks! i also suspect it's by the EU coalition behind bergamot, so probably beyond mozilla's jurisdiction, but it doesn't hurt to ask.
- edko 4y agoDo you know if this will be open-sourced, or if the repo is already available?
- space_fountain 4y agoI think this is probably the source https://github.com/mozilla/firefox-translations https://github.com/mozilla/firefox-translations edit: and for the actual translations https://github.com/mozilla/bergamot-translator https://github.com/mozilla/bergamot-translator
- 2Gkashmiri 4y agois there a way to opt websites/URLS/ url roots in to automatic translations? currently the "auto translate this tab" works but you have to select it manually and for me at least on linux it makes the window more than 100% so i cannot use the right side of browser in this tab. you know a simple setting "always translate this website" and an option to hide the bar
- baobob 4y agoDo you know what the pipeline looks like for new language pairs being added? This is really, really, really awesome I'm also immediately curious about using it headless outside the browser
- jelmervdl 4y agoThe training pipeline is also on Github! [1] I was experimenting with running the wasm version of bergamot-translator (the translation engine used by the addon) in node [2]. However, if you want more performance, using the Python library [3] or the native C++ interface [4] gets you further because the wasm build is limited to a single thread and thus a blocking interface, and can't use all the processor specific optimisations that are in the native builds. EDIT: Another option is using translateLocally [5], which is a Qt desktop app based on bergamot-translator. It has a native messaging API that is designed as a much faster alternative to the wasm build for browser extensions, but it can also be used from Python [6]. [1] https://github.com/mozilla/firefox-translations-training https://github.com/mozilla/firefox-translations-training [2] https://gist.github.com/jelmervdl/a4c8b6b92ad88a885e1cbd51c6ad4902 https://gist.github.com/jelmervdl/a4c8b6b92ad88a885e1cbd51c6... [3] https://colab.research.google.com/drive/1AHpgewVJBFaupwAbZq0e6TdX6REx0Ul0?usp=sharing https://colab.research.google.com/drive/1AHpgewVJBFaupwAbZq0... [4] https://github.com/browsermt/bergamot-translator/blob/main/app/bergamot.cpp https://github.com/browsermt/bergamot-translator/blob/main/a... [5] https://github.com/XapaJIaMnu/translateLocally https://github.com/XapaJIaMnu/translateLocally [6] https://github.com/XapaJIaMnu/translateLocally/blob/master/scripts/native_client.py https://github.com/XapaJIaMnu/translateLocally/blob/master/s...