In Magento, the default language is English. So the question now is:
Can we add another language for our Magento site?
Of course it’s a Yes. Just pick the desire language for your site and follow this step-by-step procedure.
Step 1: Installing a new language package
First, locate your desire language package. Here is some language packs in case you are looking for them.
- German: //github.com/splendidinternet/Magento2_German_LocalePack_de_DE
- Dutch: //github.com/Adwise/magento2-nl_NL-language
- France: //github.com/Imaginaerum/magento2-language-fr-fr
After that, get the composer key of the package such as splendidinternet/mage2-locale-de-de, which is the key for German package.
Then, go your magento2 directory and run this command in terminal:
composer require splendidinternet/mage2-locale-de-de (add the composer key behind require)
Finally, upgrade your store and then deploy the new content:
bin/magento setup:static-content:deploy de_DE (after deploy is the locale tag of the language)
Step 2: Configuration
After finished installing the language package, go to your Magento admin site.
Follow this direction: Stores -> Configuration -> General -> Locale Options then Select the language you just installed, or in our case – German (Germany) from the drop-down.
Finally, click Save config and don’t forget to flush the Magento cache.
Congratulation, you just finished setting up new language for your store site. A piece of cake, right?
If you got any problems while following our instructions, don’t mind leaving your questions in the comment sections.