This extension allows you to translate individual fields within a DCA (Data Container Array) with just one click, leveraging the DeepL API for accurate translations. It also includes caching of previously translated texts to optimize performance and minimize API calls.
composer require numero2/contao-deepl
).env
DEEPL_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:fx
config/config.yaml
deepl:
api_key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:fx'
After installation, each field that can be translated will display a small DeepL translation icon next to its label. Once clicked, DeepL will automatically translate the text in the field to match the language of your current page settings.
💡 Hint: You can also translate all fields at once by pressing ALT+T
on Windows or Option+T
on Mac.
This extension supports the following Contao bundles: