macopedia / akeneo-product-translation
Akeneo 的翻译扩展
0.2.2
2022-09-21 08:16 UTC
Requires
- akeneo/pim-community-dev: ^4.0.0||^5.0.0||^6.0.0
- google/cloud-translate: ^1.9
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpstan/phpstan: ^0.12.68
- phpunit/phpunit: ^9
README
Akeneo 的扩展,添加了新的“翻译属性”批量编辑类型。
如何下载和安装连接器
安装 composer 依赖项
composer require macopedia/akeneo-product-translation
在 config/bundles.php
中注册包
return [ \Macopedia\Translator\MacopediaTranslatorBundle::class => ['dev' => true, 'test' => true, 'prod' => true], ];
在 .env
文件中定义 Google Cloud Translate API 密钥
GOOGLE_API_KEY=yourapikey
添加新的作业实例
bin/console akeneo:batch:create-job internal update_product_translations mass_edit update_product_translations '{}' 'Translate product'
功能
使用 Akeneo 产品属性翻译器,您可以执行批量编辑作业,将一个渠道和一个区域的多文本属性翻译为目标渠道和目标区域。
扩展使用 Google Cloud Translation API
要求
- Akeneo PIM >= 4.x