Favicon of Bergamot Translator

Bergamot Translator

A C++ neural translation library based on Marian NMT, with native and WebAssembly builds for local processing. Open source under MPL 2.0.

Screenshot of Bergamot Translator website

Bergamot Translator is a C++ library for running neural machine translation on your own device. Developers can integrate it into native applications or build it for WebAssembly. Separate browser integrations, such as the TranslateLocally extension, make the engine accessible to end users. The software is free and open source under the Mozilla Public License 2.0.

Translation happens locally. The text you translate never goes to a third party, so a translation provider doesn't receive it or learn your viewing history from those requests. Bergamot optimizes its machine learning for consumer hardware, with local processing as part of its design.

The project supports Bulgarian, Czech, English, Estonian, French, Polish and Spanish. Support for translating Icelandic and Norwegian into English is limited. The Firefox extension is the browser-facing option for people who want to use translation without building an application around the library.

For developers, Bergamot provides a cross-platform C++ library based on the Marian NMT framework. Its unified API exposes neural translation functionality for integration into other projects. Native builds support applications outside the browser, while a WebAssembly build makes the translator available to JavaScript applications. The project also publishes translation models and open-source training utilities for developers and researchers.

Similar to Bergamot Translator