numero2/contao-deepl
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:
numero2/contao-deepl 适用场景与选型建议
numero2/contao-deepl 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 849 次下载、GitHub Stars 达 5, 最近一次更新时间为 2024 年 08 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「translations」 「backend」 「deepl」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 numero2/contao-deepl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 numero2/contao-deepl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 numero2/contao-deepl 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
DeepL API client wrapper for Laravel
With this Bundle you can automatically translate your content via DeepL Interface.
This extension provides option to translate content element, and tca record texts to Deepl and Google supported languages using Deepl and Googletranslate Api services.
Deepl Automated translations for Laravel lang files
This bundle offers a simple backend explanation form field (inputType).
Preview of settings in footer of tt_content element in page module.
统计信息
- 总下载量: 849
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2024-08-22
