IN nightly builds Firefox, on the basis of which Firefox 126 will be released on May 14, appeared the possibility of automated machine translation of text fragments selected on the page (previously only translation of the entire page was supported). The translation function is called through the context menu shown when you right-click on a selected block of text. To enable translation of fragments, the browser.translations.select.enable setting has been added to about:config, which is disabled by default.
In addition, in nightly builds the ability to translate into Russian, Ukrainian and Estonian is available, which in stable builds can only be used as source languages from which translation is carried out. For translation, the translation system built into Firefox is used, which performs the translation on the user’s local system without resorting to external cloud services. The system is based on an open engine Bergamotwhich is a wrapper over the machine translation framework Marianusing a recurrent neural network (RNN) and language models based transformers.
Thanks for reading: