承接 numero2/contao-deepl 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

  • 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 DeepL Logo next to its label. Once clicked, DeepL will automatically translate the text in the field to match the language of your current page settings.

Contao Backend showing the DeepL translation button

💡 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

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2024-08-22