yireo / magento2-deepl-translate-commands
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
1.0.0
2026-11-27 10:03 UTC
Requires
- php: >=8.2 <8.6
- ext-pcre: *
- deeplcom/deepl-php: ^1.11.1
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-catalog: ^104.0
- magento/module-cms: ^104.0
- magento/module-config: ^101.2
- magento/module-eav: ^102.1
- magento/module-store: ^101.1
- symfony/console: ^5.0 | ^6.0 | ^7.0
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 19:06:04 UTC
README
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
adminstore view, and its locale must differ from the default locale. A regional variant (for exampleen_UStoen_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_pathand 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-charsto cap the DeepL quota used.