2017 © Pedro Peláez
 

magento2-module magento2-translation-merger

Merge translations from magento i18n:collect command result with current theme translations

image

sensejus/magento2-translation-merger

Merge translations from magento i18n:collect command result with current theme translations

  • Thursday, November 24, 2016
  • by xclussive
  • Repository
  • 1 Watchers
  • 2 Stars
  • 258 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

Magento 2 Translations Merger

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:, (*1)

Example:, (*2)

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., (*3)

Installation

Add this to your composer.json, (*4)

  "require-dev": {
        "sensejus/magento2-translation-merger":"1.0.0"
    }

Run, (*5)

composer update

or just run, (*6)

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/) , (*7)

output-directory - Output directory of collected Magento CSV file. (Default: app/design/frontend/base/i18n/) , (*8)

locale - Locale (Default: en_US), (*9)

The Versions

24/11 2016

dev-master

9999999-dev

Merge translations from magento i18n:collect command result with current theme translations

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0

 

24/11 2016

v1.0.0

1.0.0.0

Merge translations from magento i18n:collect command result with current theme translations

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0