Translation in Magento 2

Translation in Magento 2

Many online store owners are faced with a situation where it is necessary to expand the boundaries of the business and go beyond the boundaries of their own country and native language. Development of a full-fledged localization in Magento 2 is a fairly simple process and the number of options and settings is simply impressive. Now, any online-shop owner in Magento 2 can customize the store’s language exactly as he needs and without having to experience any difficulties in this process.

First you need to install the Magento 2 language pack. Let's quickly clarify what it is. It’s a collection of vocabularies in which there is a translation for a given language and also contains very useful meta-information. This allows you to change the language of the Magento application. You have a choice between two formats of language packs in Magento 2.

  1. Various modules and packages that Magento automatically finds and identifies.
  2. A huge dictionary in one directory, which is used as an independent addition.

You can install pre-made solutions that other platform users have created, but no one forbids you to create your personal localization package. The main thing is to comply with all installation rules since Magento translates only if the database has all required dictionaries and the entire data array is configured by the administrator. Let’s take German localization which in our case has the name de_DE, and show with it an example of how the dictionaries of this language should be located in the directory.

app/code/Site_example/Checkout/i18n/de_DE.csv
app/design/frontend/Site_example/multilanguagetheme/i18n/de_DE.csv

Thus, we added the German language directly to our storefront and now everything is displayed in the correct way.
Translation in Magento 2

Now, let's imagine a situation that you have to manually translate some names or conditions. So that everything works out correctly, we advise you to follow these steps. First, you need to use your dictionary translation utility to create your own dictionary where all your translated words and phrases will be stored. Next, you need to actually translate everything that you consider necessary and, in general, the work is done. Also, if you have such a need, you can pack all your works in a separate language pack, but this is not necessary.

Let's summarize the above. In order for your store to speak a different language, you may choose between these two methods:

  1. Individual translation dictionaries. They are simply irreplaceable in cases when you need to translate something specific. Actually thanks to them, you can translate absolutely any words and phrases and you are not limited in this.
  2. Localization packages that translate absolutely all the words in the Magento 2 application. Remember how we translated the store into German? You can safely find any package you are interested in simply by going to the Magento official store where they are all located.

Business development is very important and one of the pillars of development is the expansion of the consumer audience and the service area. Magento 2 fully supports this strategy and allows you to translate your stores into any language of any country in which you are interested. Thus, you can easily transform your store and thereby expand the action of your business not only outside your country, but also outside your mainland. And that's all for now. Feel free to write to us and our Team of Magento 2 Developers and they will advise you on all your questions.

You may also be interested in the following articles:

Comments (0):
Leave a comment:
*Your comment will be published after approval by site administrator.