numero2/contao-deepl
最新稳定版本:1.0.8
Composer 安装命令:
composer require numero2/contao-deepl
包简介
DeepL powered translations in the Contao Backend.
README 文档
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
.envDEEPL_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - Alternatively, you can add the API key to your
config/config.yaml
deepl:
api_key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx'
- A preferred mapping can be created for language variants (e.g. British English en-GB, Brazilian Portuguese pt-BR, etc.). The exact language code to be used can be found at Deepl.com.
deepl:
api_key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx'
pref_lang:
en:en-GB
pt:pt-BR
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:
统计信息
- 总下载量: 448
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2024-08-22
