How to create a language package for Magento 2

- Fire development, Magento 2

Magento 2 Development

Creating a language package in Magento 2 requires the following steps:

'

1

Run i18n:collect-phrases5 to collect all phrases you are going to translate:

For instance:

2

Create an extension for your language package.

2.1

Create a composer.json file.

A core example:

magento/magento2/blob/2.0.0/app/i18n/magento/de_de/composer.json

The example

2.2

Now, you should create a language.xml file.

magento/magento2/blob/2.0.0/app/i18n/magento/de_de/language.xml

The example

2.3

Now, it’s time to make a registration.php file.

magento/magento2/blob/2.0.0/app/i18n/magento/de_de/registration.php

You can use a universal registration.php.

3

Install the extension.

4

Perform the translation and update your module.

Source

More tips from the Cookbook

'