vectorbross / vb_multilingual_deepl_recipe
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
Requires
- drupal/core: ^10.4 || ^11
- drupal/tmgmt: ^1.19
- drupal/tmgmt_deepl: ^2.2
- vectorbross/vb_multilingual_recipe: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.