[[TOC]]
This plugin provides automated translation using the DeepL API. It requires that the Multilingual plugin is installed and configured. It supports multiple languages and enables users to define and manage their own language sets.
- Go to your Flotiq UI and select
Plugins
from the left side menu. - Find the
DeepL translation plugin
and enable it, wait for the UI to reload. - Click
Manage
and thenAdd item
in the configuration window. - Select the Content Type, where you want to configure the plugin.
- Next select the fields, that will be translated. Only text and rich-text fields are supported for now.
- Enter the list of available languages, including the original one (the one which you will use to enter the content). Please use 2-letter language codes, as supported by DeepL.
- Select the original language in the
Default language
field.
Warning: Translating slug fields can cause unidentified behavior
- Once the plugin is configured - go to the configured Content Type and edit one of the objects.
- There will be a magic icon displayed next to the first field of the form - once you're done entering your content and you want to translate - click on it.
- You can now browse to the other language tabs to see your translated content!
yarn
- to install dependenciesyarn start
- to start development mode - rebuild on file modifications- update your
plugin-manifest.json
file to contain the production URL and other plugin information yarn build
- to build plugins
Dev environment is configured to use:
prettier
- best used with automatic format on save in IDEeslint
- it is built into bothstart
andbuild
commands
The plugins are built into a single dist/index.js
file. The manifest is copied to dist/plugin-manifest.json
file.
Warning: While developing, you can use https://localhost:3053/plugin-manifest.json
address to load the plugin manifest. Make sure your browser trusts the local certificate on the latter, to be able to use it e.g. with https://editor.flotiq.com
Hint: You can use localhost url from development mode https://localhost:3053/index.js
- Open Flotiq editor
- Open Chrome Dev console
- Execute the following script
FlotiqPlugins.loadPlugin('plugin-id', '<URL TO COMPILED JS>')
- Navigate to the view that is modified by the plugin
- Open Flotiq editor
- Open Chrome Dev console
- Paste the content of
dist/index.js
- Navigate to the view that is modified by the plugin
Hint: You can use localhost url from development mode https://localhost:3053/plugin-manifest.json
- Open Flotiq editor
- Add a new plugin and paste the URL to the hosted
plugin-manifest.json
file - Navigate to the view that is modified by the plugin