sensejus / magento2-translation-merger
Merge translations from magento i18n:collect command result with current theme translations
Installs: 282
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Type:magento2-module
Requires
- php: ~5.5.0|~5.6.0|~7.0.0
This package is not auto-updated.
Last update: 2025-02-15 22:15:34 UTC
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)