Translator
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.
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}.
- Select the text you want to translate.
- Open the Plugins tab and press Translator.
- Select the necessary language. The translation will be displayed in the plugin window immediately.
Repository on GitHub: https://github.com/ONLYOFFICE/onlyoffice.github.io/tree/master/sdkjs-plugins/content/translator.
- config.json, index.html, and translate.js
- Icons
- The translations folder contains translations into Russian, German, Spanish, Czech, and French.
- index_widget.html specifies the translator widget
- Third-party services:
- jQuery - a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. License: MIT License.
- Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options. License: MIT.
- Google Translate API enables translation between languages. License: MIT License.
{
"name": "Translator",
"nameLocale": {
"ru": "Переводчик",
"fr": "Traducteur",
"es": "Traductor",
"de": "Übersetzer"
},
"guid": "asc.{7327FC95-16DA-41D9-9AF2-0E7F449F6800}",
"version": "1.0.1",
"variations": [
{
"description": "Translate the selected text into other languages with Google Translate.",
"descriptionLocale": {
"ru": "Переводите слова, предложения и абзацы на другие языки с помощью Google Translate.",
"fr": "Traduisez le texte sélectionné dans d'autres langues avec Google Translate.",
"es": "Traduzca el texto seleccionado a otros idiomas con el Traductor de Google.",
"de": "Übersetzen Sie den ausgewählten Text in andere Sprachen mit Google Translate."
},
"url": "index.html",
"icons": [ "resources/img/icon.png", "resources/img/icon@2x.png" ],
"icons2": [
{
"100%": { "normal": "resources/img/icon.png" },
"125%": { "normal": "resources/img/icon@1.25x.png" },
"150%": { "normal": "resources/img/icon@1.5x.png" },
"175%": { "normal": "resources/img/icon@1.75x.png" },
"200%": { "normal": "resources/img/icon@2x.png" }
}
],
"screens": ["resources/store/screen_1.png"],
"isViewer": true,
"EditorsSupport": [ "word", "cell", "slide" ],
"isVisual": true,
"isModal": false,
"isInsideMode": true,
"initDataType": "text",
"initOnSelectionChanged": true,
"store": {
"background": {
"light": "#F5F5F5",
"dark": "#444444"
},
"screenshots" : ["resources/store/screenshots/screen_1.png"],
"icons" : {
"light" : "resources/store/icons",
"dark" : "resources/store/icons"
}
}
}
]
}
If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.