
Magento 2 platform supports multiple languages around the world. In our blog we want to install the Spanish Language Pack Now Let’s see:
How to Install Spanish Language Pack
There are 2 different methods to install this language pack.
Method #1. Install via Composer
Install the Spanish language pack via composer is really easier.
Install Spanish pack:
1 2 3 4 5 | composer require webiators/magento-2-spanish-language-pack:dev-master php bin/magento setup:static-content:deploy es_ES php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush |
You may get this message:

=> Go to Access Keys page and Create A New Access Key
.
Or use these keys:
1 2 | Public Key: c7af1bfc9352e9c986637eec85ed53af Private Key: 17e1b72ea5f0b23e9dbfb1f68dc12b53 |
Update Spanish pack:
1 2 3 4 5 | composer update mageplaza/magento-2-spanish-language-pack:dev-master php bin/magento setup:static-content:deploy es_ES php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush |
Method #2. Install via command line
Download the language file to your installation root directory. Now run the following command:
1 2 3 4 | wget https://github.com/mageplaza/magento-2-spanish-language-pack/raw/master/es_ES.csv php bin/magento i18n:pack -m replace es_ES.csv es_ES php bin/magento setup:static-content:deploy es_ES php bin/magento cache:flush |
As a conclusion, a directory language pack will be created, which contains the proper structure of language files for your installation. Copy it over to your Magento installation and the translation should be visible.
If you have any doubts about this topic, please mention them in the comment section below.
Thank you.