digitalpulsebe/craft-multi-translator

Translate content of elements using the external services

2.4.0 2024-04-19 13:46 UTC

README

Translate content of elements using external services

Requirements

This plugin requires Craft CMS 4.4.0 or later, and PHP 8.0.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Multi Translator”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

composer require digitalpulsebe/craft-multi-translator -w && php craft plugin/install multi-translator

when using DDEV:

ddev composer require digitalpulsebe/craft-multi-translator -w && ddev exec php craft plugin/install multi-translator

Translation Services

For now, we support these API services:

  • Deepl - Create your account at Deepl to get an API Key
  • Google Cloud Translation - Create an API key in your Cloud Console
  • OpenAI (ChatGPT) - Create an API key in at OpenAI

Roadmap

Please let us now which API's and features are desired for this plugin!

Plugin Settings

Configure options in the Craft control panel settings

Screenshot

Permissions

For non-admin users, enable the permission 'Translate Content' under 'Multi Translator'

Supported field types

  • craft\fields\PlainText
  • craft\fields\Table
  • craft\redactor\Field
  • craft\ckeditor\Field
  • verbb\vizy\fields\VizyField
  • craft\fields\Matrix (recursive)
  • benf\neo\Field (recursive)
  • verbb\supertable\fields\SuperTableField (recursive)
  • lenz\linkfield\fields\LinkField
  • nystudio107\seomatic\fields\SeoSettings
  • ether\seo\fields\SeoField

Usage

There are two ways to trigger a translation.

Translate one-by-one

  1. Navigate to the entry and the desired target site/language.
  2. Use the buttons in the sidebar and select the source language.

Screenshot

Translate in bulk

  1. Navigate to overview of entries you want to get translated.
  2. Select the entries in the source language.
  3. Use the 'Translate to' dropdown in the actions bar and choose the target language
  4. A queue job will be started

Screenshot