datocms-plugin-translate-fields

A DatoCMS plugin that gives you the ability to translate `structured-text`, `string` and `text` fields in DatoCMS

Usage no npm install needed!

<script type="module">
  import datocmsPluginTranslateFields from 'https://cdn.skypack.dev/datocms-plugin-translate-fields';
</script>

README

DatoCMS plugin: Translate fields

This DatoCMS plugin gives you the ability to translate structured-text, string and text fields. This plugin is an addon which will add a translate button to all selected fields.

Features

  • Translate text and string fields
  • Translate structured text fields
  • Translate to all languages with one button press
  • Translate and copy text from the default language

Configuration

First add this plugin via DatoCMS Settings > Plugins > Add (/admin/plugins/new).

Plugin settings

For this plugin you can configure global settings and configure the plugin per field. Choose to apply the plugin automatically to all string/text fields or add the plugin as addon per model/field. Settings set per model/field will always overwrite all global settings.

Global Settings

  • Auto apply to fields (switch): When enabled this will automatically apply the plugin to all structured-text, string and text fields. By changing the following setting you can choose on which fields this plugin will be applied.

  • Field where this plugin is enabled (multi select): You can choose to which fields the plugin will be applied.

Options of Field where this plugin is enabled:

  • Structured-text fields
  • String fields
  • text fields

General Settings

  • Translation service: You can choose which service will be used to translate. The chosen service will be used and an option to add an api key will be presented automatically.

Options of Translation service:

  • Yandex translate
  • DeepL API Pro
  • DeepL API Free
  • API key of [selected translation service]: Add the API key of the translation service that you have selected. The plugin will give errors if the API key isn't added or if the translation service serves an error.

Contributing

See contributing.md.

License

MIT Licensed by De Voorhoede.