numero2 / contao-deepl
DeepL powered translations in the Contao Backend.
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 1
Type:contao-bundle
Requires
- contao/core-bundle: ^5.3
- deeplcom/deepl-php: ^1.8
- symfony/cache-contracts: ^3.0
- symfony/config: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/http-foundation: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/intl: ^6.4 || ^7.0
- symfony/translation-contracts: ^3.0
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
About
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.
System requirements
- Contao 5.x
- DeepL API Key (free or paid plan)
Installation & Configuration
- Install the extension via Contao Manager or Composer (
composer require numero2/contao-deepl
) - Add your DeepL API Key to your
.env
DEEPL_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:fx
- Alternatively, you can add the API key to your
config/config.yaml
deepl:
api_key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:fx'
Usage
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.
Supported bundles
This extension supports the following Contao bundles: