Search by

yireo / magento2-deepl-translate-commands

yireo

CLI commands to translate Magento 2 content (products, categories, CMS pages, CMS blocks) using the DeepL API

Package info

github.com/yireo/Yireo_DeeplTranslateCommands

Type:magento2-module

pkg:composer/yireo/magento2-deepl-translate-commands

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 80

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2026-11-27 10:03 UTC

This package is auto-updated.

Last update: 2026-11-30 19:06:04 UTC


README

Magento version PHP version License Latest Version

This Magento 2 module adds various CLI commands to allow categoriies, products, CMS pages and CMS blocks to be translated via DeepL

Installation

Install this package via composer:

composer require yireo/magento2-deepl-translate-commands

Next, enable this module:

bin/magento module:enable Yireo_DeeplTranslateCommands

Usage

bin/magento deepl:translate:product 1 german --dry-run
bin/magento deepl:translate:products german --max-chars=100000

Notes:

  • The target store view may not be the admin store view, and its locale must differ from the default locale. A regional variant (for example en_US to en_GB) is allowed.
  • Translating needs at least two store views: with a single store view Magento saves store view values into the default scope.
  • Only store-view scoped attributes can be translated. sku, url_key, url_path and the layout attributes are never translated.
  • Only the translated attributes are saved for the target store view. Other attributes keep using the default values.
  • A translation is rejected when DeepL returns HTML tags, attributes, URL or style values or {{directives}} that are not in the source.
  • A CMS page or block is not overwritten when it is the source itself or is assigned to multiple store views.
  • The bulk commands ask for confirmation. Use --no-interaction (-n) in scripts. Use --max-chars to cap the DeepL quota used.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation