Get Started
Plugins
Macros
More information

Translator

Description

Connects the Google Translate API for translating the selected text into other languages.

Plugin type: visual, non-system.

Supported editors: documents, spreadsheets, presentations.

Analogues: Apertium, DeepL.

Translator
Installation

Available by default in the cloud, on-premises and desktop versions of ONLYOFFICE editors.

You can remove it following the desktop, on-premises, or cloud installation instructions.

The plugin guid: {7327FC95-16DA-41D9-9AF2-0E7F449F6800}.

Usage
  1. Select the text you want to translate.
  2. Open the Plugins tab and press Translator.
  3. Select the necessary language. The translation will be displayed in the plugin window immediately.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/plugin-translator.

  1. config.json, index.html and code.js
  2. Icons
  3. The translations folder contains translations into Russian, German, Spanish and French.
  4. Third-party service:
Config
{
    "name": "Translator",
    "nameLocale": {
        "ru": "Переводчик",
        "fr": "Traducteur",
        "es": "Traductor",
        "de": "Übersetzer"
    },
    "guid": "asc.{7327FC95-16DA-41D9-9AF2-0E7F449F6800}",

    "variations": [
        {
            "description": "Translator",
            "descriptionLocale": {
                "ru": "Переводчик",
                "fr": "Traducteur",
                "es": "Traductor",
                "de": "Übersetzer"
            },
            "url": "index.html",

            "icons": [ "resources/img/icon.png", "resources/img/icon@2x.png", "resources/img/icon.png", "resources/img/icon@2x.png" ],
            "isViewer": true,
            "EditorsSupport": [ "word", "cell", "slide" ],

            "isVisual": true,
            "isModal": false,
            "isInsideMode": true,

            "initDataType": "text",
            "initData": "",

            "isUpdateOleOnResize": false,

            "buttons": [],

            "initOnSelectionChanged": true
        }
    ]
}
Methods and events

The main plugin code is located here.

Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.