Bergamot Translator: Translating text locally

In ONLYOFFICE Docs, you can translate text directly within the editor without an Internet connection using the Bergamot plugin icon Bergamot Translator plugin. The plugin uses neural machine translation powered by the same technology as Firefox Translations. Please refer to the GitHub page of the plugin to learn more.

ImportantStarting with ONLYOFFICE Docs 8.2, no plugins come with the editors by default. The plugins shall be installed via the ONLYOFFICE Plugin Manager Plugin Manager.

Features
  • Offline Translation: Works without Internet connection after models are downloaded
  • Privacy-Friendly: All translation happens locally in your browser using WebAssembly
  • Neural Machine Translation: High-quality translations using the Bergamot engine
  • Multi-Language Support: Supports translation between many European languages
  • Model Caching: Language models are cached in your browser for offline use
  • Manual Input: Option to manually enter text for translation
Usage

Bergamot plugin interface

  1. Install the plugin via the ONLYOFFICE Plugin Manager Plugin Manager.
  2. Switch to the Plugins tab and choose Bergamot plugin icon Bergamot Translator.
  3. Select the text you want to translate.
  4. Choose source and target languages.
  5. Click Insert to document to replace selected text with translation, or click Copy to copy the translation to clipboard.

The plugin uses Bergamot Translator, a WebAssembly port of the Marian NMT framework. Translation models are provided by Mozilla Firefox Translations. The plugin is part of the Bergamot Project.

How it works

An Internet connection is required for the first launch and for downloading of new models.

  1. First use: The plugin downloads the translation engine (WASM) and selected language models.
  2. Model caching: Models are cached in your browser for offline use.
  3. Translation: Text is translated locally using neural machine translation.

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags