When you create a multi-language store to reach international markets, the first thing you need is to translate it. And for that, you need to install Magento language packs.
Native, or third-party language packs cover navigation titles, labels and buttons on your store. In other words, they cover the basic Magento translation in both, the frontend and the admin panel.
So, in this guide, you'll discover everything you need about Magento language packs and how to use them.
Post Contents [hide]
What is Magento 2 Language Pack?
The Magento 2 language pack is a set of files that include translations for different text content on your store. Magento uses translation dictionaries that are easy to update. This means you can easily change, customize or even create your own version of the translations provided by Magento.
Besides, there are different user-generated Magento language packs you can use.
How to Install Magento Language Packs?
Once you find a language pack you need, it's time to install it.
- Login to your Magento server as a system file owner.
- Go to the Magento root directory.
- Run the following CLI commands:
composer require vendor/language-pack-en-us
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy en_US
Note: the commands may vary depending on the vendor or developer.
Don't expect all translations to appear just after you run the commands. You also need to activate a language pack for it to work.
How to Enable Language Pack in Magento?
Take the following steps to enable a language pack in Magento 2:
- Navigate to Stores > Configuration > General > Locale Options.
- Choose the corresponding language from the Locale dropdown.
Note: in case you have several store views switch to the Store View you want to change the language for.
Don't forget to Save the settings and flush the Magento cache once you finish. That's how you install the Magento language pack and enable it in your store.
Language Pack Doesn't Translate All Texts
Although language packs translate most of the titles, labels and buttons, they can't cover all of them. They might not include translations for customizations and third-party modules. In this case, you can use the Translation Extension to add translations directly from the admin panel.
One more important thing to note is that no language pack or translation extension will cover long-form content. Thus, after you add locales to your store you need to translate products and categories manually.