Search by

vectorbross / vb_multilingual_deepl_recipe

vectorbross

The complete multilingual setup with machine translation of content by TMGMT and DeepL.

Package info

bitbucket.org/vectorbross/vb_multilingual_deepl_recipe

Type:drupal-recipe

pkg:composer/vectorbross/vb_multilingual_deepl_recipe

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

1.0.0 2026-10-02 06:50 UTC

This package is not auto-updated.

Last update: 2026-10-02 16:34:36 UTC


README

The complete multilingual setup: applies vb_multilingual_recipe and adds machine translation of content with TMGMT and DeepL.

  • Installs tmgmt, tmgmt_content and tmgmt_deepl. TMGMT creates the "DeepL API Free" and "DeepL API Pro" translators.
  • Marks the entity reference fields between blocks (accordion items, tabs, …) as embedded, so TMGMT translates the child blocks together with their parent.

Installation

The project's composer.json needs the installer path for recipes:

"installer-paths": {
    "recipes/{$name}": ["type:drupal-recipe"]
}
composer require vectorbross/vb_multilingual_deepl_recipe
cd web
php core/scripts/drupal recipe ../recipes/vb_multilingual_deepl_recipe --input=vb_multilingual_recipe.languages=fr,en
drush cr && drush config:export
drush locale:check && drush locale:update

Set the DeepL API key in settings.php, never in the exported configuration:

$config['tmgmt.translator.deepl_free']['settings']['auth_key'] = getenv('DEEPL_API_KEY');
$config['tmgmt.translator.deepl_free']['settings']['url'] = 'https://api-free.deepl.com/v2/translate';
$config['tmgmt.translator.deepl_free']['settings']['url_usage'] = 'https://api-free.deepl.com/v2/usage';

For DeepL API Pro, use tmgmt.translator.deepl_pro with https://api.deepl.com/v2/translate and https://api.deepl.com/v2/usage.