A handy new translations feature is in the works for Mozilla Firefox that should help speed up translating short snippets of text from one language to another.
Firefox 118 introduced a privacy-respecting web page translation feature, and Mozilla devs have continued to improve on it in subsequent releases.
But sometimes you don’t need or want to translate an entire web page, just a portion of text on the page.
Plus, given that Firefox translations take place locally to preserve privacy, the task of translating every bit of text visible on a web page can be a little on the slow side (on my machine it is, anyway).
So I’m delighted to mention that a future edition of the browser will facilitate only the translation of highlighted text (as in sections of text you manually select using your cursor).
This capability to translate concise text snippets (without exiting the page) is not only swifter but will be particularly advantageous when browsing websites with mixed-language content (such as social media and forums posts, language learning websites, etc).
Let’s inspect how to activate it, as well as its operation.
How to experiment with it in Firefox Nightly
The ‘select translation’ feature is available to test in the latest developer builds of the browser, if you use Firefox nightly builds in Ubuntu, now that Mozilla maintains a dedicated APT repo for them, here’s how to try this out yourself: –
- Go to
about:config
in a new tab - Search for
browser.translations.select.enable
- Double-click the above entry to set the switch to
true
Now, when you select a portion of text on a web page you will see a new context menu entry available allowing you to “Translate selection to…” your configured language:
Text isn’t translated in-situ on the page. Instead, a small modal pop-up appears. From here you can configure (if needed) both input and output language. There’s also an option to translate the entire web page to save you some time.
While the ‘select translation’ switch is also present in Firefox 124 (plus the betas of next week’s 125 release) it will only function in Firefox 126 alpha builds. There’s no timeline as to when this might roll out widely but corresponding Bugzilla references suggest the Firefox 126 release in May.
This might not be the world’s most revolutionary feature but Mozilla’s privacy-tinged translations are handy in a pinch, so if you make use of them often, look out for this feature and hope it doesn’t go the way of those rounded bottom corners for Linux!