sensejus/magento2-translation-merger
Composer 安装命令:
composer require sensejus/magento2-translation-merger
包简介
Merge translations from magento i18n:collect command result with current theme translations
README 文档
README
Merge translations from magento i18n:collect command result with current theme translations. So each time you add some new translatable strings into your templates, you will be able to update your theme/module translation files automatically by running:
Example:
php bin/magento i18n:collect-phrases --output "app/i18n/Vendorname/sv_SE/sv_SE.csv" --magento
php bin/magento translation-merger:merge app/i18n/Vendorname/sv_SE/ app/design/frontend/Yourtheme/Yourthemepackage/i18n/ sv_SE
This module fix magento issue then running bin/magento i18n:pack , for some reason it just replaces your current theme/module csv translations and not merges them.
Installation
Add this to your composer.json
"require-dev": { "sensejus/magento2-translation-merger":"1.0.0" }
Run
composer update
or just run
composer require sensejus/magento2-translation-merger
Usage
bin/magento translation-merger:merge [input-directory] [output-directory] [locale]
Arguments:
input-directory - Input directory of collected Magento CSV file. (Default: app/i18n/)
output-directory - Output directory of collected Magento CSV file. (Default: app/design/frontend/base/i18n/)
locale - Locale (Default: en_US)
统计信息
- 总下载量: 283
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2016-11-24