TranslateLocally: local translations as an Extension and Desktop app
TranslateLocally is an open source browser extension and desktop application that promises local translations. It's source is the same that the official Firefox Translations extension uses: Project Bergamot.
Project Bergamot is a EU-funded project to create a privacy-friendly and open translation service. Browsers like Google Chrome or Microsoft Edge had an edge over other browsers for a long time, as they could leverage the translation services of their parent companies.
Both Google Translate and Microsoft Translate are cloud-based services, that require an Internet connection. Information is submitted to Google or Microsoft whenever content is translated.
Firefox Translate changes that by moving translations to the local system. The extension works really well already, but lacks support for the majority of languages.
TranslateLocally's origin dates back to Project Bergamot, just like Firefox Translations. Project Bergamot funding ended in June 2022, but a new project, High Performance Language Technologies, received funding already.
TranslateLocally is available as an extension for the Firefox web browser and as a desktop app. Since it is not as deeply linked to Firefox as Firefox Translations, it may in theory also be made available for other browsers. An experimental Chromium extension is already in development.
The desktop app is a standalone application that is available for Windows, Mac and Linux devices. It appears to be powered by Electron. Once started, it requires that you download at least one language pair to enable offline translation support.
The list of language pair that is supported is identical to that of Firefox Translations:
Bulgarian ? English
Czech ? English
Estonian ? Engish
French ? Engish
German ? English
Polish ? English
Spanish ? English
Ukranian ? English
Icelandic ? English
Norwegian Bokmål ? English
Norwegian Nynorsk ? English
You may type or paste text into the upper text field to have it translated automatically by the program. All translations happen locally.
The TranslateLocally extension for Firefox may be used independently or in conjunction with the desktop app. It adds an icon to the Firefox toolbar that displays the translation options when it is activated. You may also right-click on a text selection to have it translated directly.
The extension works similarly to Firefox Translations, but there are differences between both implementations:
- Supports in-page translations, not just full page translations.
- Is powered by a button in the interface as non-Mozilla extensions have no access to the area that Firefox Translations uses.
- Lacks form field translations (for now).
- May use models that Firefox Translations does not use.
One of the interesting features of TranslateLocally, besides being able to translate individual words, sentences or paragraphs, is that it may work in conjunction with the desktop app, which improves the translation performance. Another advantage is support for importing other translation models, provided that these support Marian.
Firefox Translations development continues as well. The next version will introduce support for translating text selections. Both projects will benefit from the new EU project as more language pairs will be produced in the coming three years.
Should you use Firefox Translations or TranslateLocally? There is no definitive answer to that, as both offer features that the other does not offer. Support for the translation of text selections is a much requested Firefox Translations feature, but differences exist even after that feature lands.
Now You: which translation service do you use? (via Sören Hentzschel)
I fall in love with this project since the first time I have heard about it, being able to translate offline is such a godsend.
Hopefully Japanese will come later.
Yes, it was already confirmed that Japanese is “on the list for the new EU-funded project High Performance Language Technologies”.
I use “To Google Translate”. This extension is of no use to me since I need Chinese, Japanese, and some Arabic translation.
you can download language pair manually at https://translatelocally.com/models.json, extract file until you see folder and put at C:\Users\*user*\AppData\Roaming\translateLocally
I had encountered issues with the ‘Firefox Translation’ extension. I’ve just installed ‘TranslateLocally’ and I must say it processes the translation flawlessly and rather quickly though the Desktop isn’t installed.
I had abandoned a translation extension that I had used for quite some time (TWP – Translate Web Pages) the day I decided to block all connections to Google servers : TWP requires a connection to a Google server for in-page translations.
I tested translating Sören Hentzschel’s page mentioned in the article with TranslateLocally :) Given I lack knowledge of the German language I have no basis to consider the translation’s quality. I’ll test with English/French, French/English and/or compare with Google Translations via [https://simplytranslate.pussthecat.org/] (or any other SimplyTanslate instance) and with DeepL (both on-line but no in-page translations) later on.
The nice thing about TranslateLocally is that it translates in-page but avoids displaying the huge bar on the top of the page as ‘Firefox Translation’ does : just the toolbar button, choose your destination language, et voila. Nice.
> The nice thing about TranslateLocally is that it translates in-page but avoids displaying the huge bar on the top of the page as ‘Firefox Translation’ does
Firefox Translations will change the UI in a future update as well.
No Russian? That’s problematic for me.
Rather slow, albeit precise on a German website.
What to make of it? So seldom do I need or use a translation service that I may as well stick with Translate this Page. Firefox Translations shows Russian is still in development.
Not much of a choice for quick reference.
Could be an excellent choice for some users.
DeepL for documents?
Yes, don’t see Russian. Bummer.
Ukrainian but not Russian? You gotta love political correctness…not.
I use Mate Translate browser extension in Firefox. Works fine. And translates Russian.
Mate hounds you too much during use to upgrade to their pro version.
I use the “Simple translate” extension in Firefox. It also translates individual words, sentences or paragraphs in a popup window.
The english-French translation of “TranslateLocally” is imperfect compared to Google.
The translation of a page replaces the original text so that to compare with the original text you have to open the page again in another tab. “Simple translate” opens the translation in a new tab.
For applications other than Firefox I use Qtranslate.
Translation will improve as they train more data, that’s the nature of NLP, there’s many better models than Google Translate, just their size can be massive (1GB+).
Now You: which translation service do you use?
I still prefer to use numerous online translation services (ex. Google, Microsoft, DeepL, etc.) via QTranslate desktop app (portable version) as offline or local translation is just not as accurate as online services that can utilize NLP or natural language processing. I also use QTranslate as it makes it easy to compare translations across difference services to ensure the intended meaning since I’ve found translations can vary at times depending on sentence structure and/or grammar.
I also prefer a stand alone desktop app as I do not like to install any browser extensions. But also because I can just close the app when I do not have a need for translation.
“It appears to be powered by Electron.”
In other words it’s based on the Google Chromium browser. What a shame for a privacy-motivated software.
> The desktop app is a standalone application that is available for Windows, Mac and Linux devices. It appears to be powered by Electron.
Bam! So, it’s basically anyway extension inside chromium. Fake app.
I had no idea the language list in Firefox Translations was so small. That’s crazy. Why no Chinese, Korean, Italian, Japanese, Hindi, Arabic or Russian??? It’s shocking they even offer English. Honestly, with those languages included most of the world would have a language they can read.
And eliminating Russian only enables bad people to do things in secret because translating their language is more difficult. There are 143 million Russians — 142 million decent people I’d like to talk to, and 1 million that I’d really like to know what they’re what they’re up to.
Both apps are pretty useless to the majority of users for now.
I like the privacy aspect, and the fact that I can use it for my entire system. Hope things improve.