mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
Bergamot Translator Plugin for ONLYOFFICE
An offline machine translation plugin for ONLYOFFICE editors, powered by the Bergamot neural machine translation engine.
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 same technology as Firefox Translations
- Multi-Language Support: Supports translation between many European languages
- Automatic Text Detection: Automatically translates selected text in the document
- Manual Input: Option to manually enter text for translation
Supported Language Pairs
The plugin supports translation between the following languages:
- English
- German
- Spanish
- French
- Italian
- Portuguese
- Polish
- Dutch
- Russian
- Ukrainian
- Czech
- Bulgarian
- Estonian
- Norwegian (Bokmal and Nynorsk)
- And more...
How It Works
- First Use: The plugin downloads the translation engine (WASM) and selected language models
- Model Caching: Models are cached in your browser for offline use
- Translation: Text is translated locally using neural machine translation
Technical Details
- Uses Bergamot Translator - a WebAssembly port of the Marian NMT framework
- Models are provided by Mozilla Firefox Translations
- Part of the Bergamot Project funded by the European Union
Usage
- Install the plugin in your ONLYOFFICE editor
- Select text you want to translate
- Choose source and target languages
- Click "Insert to document" to replace selected text with translation
- Or click "Copy" to copy the translation to clipboard
License
Apache License 2.0
Third-party
- Bergamot Translator (MPL 2.0)
- Firefox Translations Models (CC BY-SA 4.0)
- jQuery (MIT)
- Select2 (MIT)
- Marian NMT (MIT)