https://blog.mozilla.org/en/mozilla/local-translation-add-on-project-bergamot/ Skip to content Mozilla search * Internet Culture + Deep Dives + Mozilla Explains + Interviews + Videos * Privacy & Security * Products + Firefox + Pocket + Mozilla VPN * Mozilla + News + Internet Policy + Leadership o Mitchell Baker, CEO o Mark Surman, ED Foundation o Eric Rescorla, Firefox CTO Download Firefox search Search Search for: [ ] [Search] [moz_blog_header_pattern_1920x1080_03-1000x563] Mozilla Mozilla releases local machine translation tools as part of Project Bergamot calendar June 2, 2022 author Andre Natal In January of 2019, Mozilla joined the University of Edinburgh, Charles University, University of Sheffield and University of Tartu as part of a project funded by the European Union called Project Bergamot. The ultimate goal of this consortium was to build a set of neural machine translation tools that would enable Mozilla to develop a website translation add-on that operates locally, i.e. the engines, language models and in-page translation algorithms would need to reside and be executed entirely in the user's computer, so none of the data would be sent to the cloud, making it entirely private. In addition to that, two novel features needed to be introduced. The first was translation of forms, to allow users to input text in their own language that is dynamically translated on-the-fly to the page's language. The second feature was quality estimation of the translations where low confidence translations should be automatically highlighted on the page, in order to notify the user of potential errors. This set of requirements posed a number of technological challenges to the team: the translation engine was entirely written in programming languages that compile to native code. We needed a way to streamline the distribution of the project in order to avoid the overhead involved in providing builds compatible with all platforms supported by Firefox -- that would be impracticable to scale and maintain. Also, the engine needed to perform fast enough on CPUs and not rely on GPUs like is traditionally required by deep learning solutions. Our solution to that was to develop a high-level API around the machine translation engine, port it to WebAssembly, and optimize the operations for matrix multiplication to run efficiently on CPUs. That enabled us to not only develop the translations add-on but also allowed every web page to integrate local machine translation, like in this website, which lets the user perform free-form translations without using the cloud. The translations add-on is now available in the Firefox Add-On store for installation on Firefox Nightly, Beta and in General Release. We are looking for users' feedback and in the add-on, you'll see a button to fill out a survey that will help Project Bergamot collaborators understand which direction we should take the product. To empower the community to contribute with new languages we also developed a comprehensive training pipeline to allow enthusiasts to easily train new models, helping expand the add-on reach. This work aligns with Mozilla's commitment to keeping the web accessible to everyone regardless of their language while also building open-source projects of value to our community with a focus on privacy. Please join us and send suggestions -- we need all of your voices to make this add-on truly accessible for all. This project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 825303 . --------------------------------------------------------------------- Share on Twitter previous Previous Post Marketing our privacy products while preserving privacy Next Post Social media's 'Doomscrolling Reminder Lady' on her favorite corners of the internet next Related Articles Karen Ho smiles for a photo. Interviews Social media's 'Doomscrolling Reminder Lady' on her favorite corners of the internet Read More [firefox_blog_ffx100_orange-800x800] Mozilla Celebrating Firefox: How we got to 100 Read More abby wren makeup artist Firefox Mozilla celebrates groundbreaking creators in new docuseries "Firefox Presents" Read More newsletter Keep up with all things Firefox Get how-tos, advice and news to make your Firefox experience work best for you. Your e-mail address [ ] Country [- select - ] Language [English ] Format (*) HTML ( ) Text [ ] I'm okay with Mozilla handling my info as explained in this Privacy Policy. Sign up now We will only send you Mozilla-related information. Thanks! If you haven't previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an e-mail from us. Mozilla Mozilla * About * Contact Us * Donate Firefox * Download Firefox * Desktop * Mobile * Features * Beta, Nightly, Developer Edition Resources * Privacy Hub * Browser Comparison * Brand Standards Social Follow @Firefox * Twitter (@mozilla) * Instagram (@mozilla) * YouTube (@firefoxchannel) Follow @Mozilla * Twitter (@mozilla) * Instagram (@mozilla) * Website Privacy Notice * Cookies * Legal