With Magento 2 Portuguese Language Pack tutorial, it is achievable to use the native language - Portuguese instead of the Magento 2 default language on your store. Maybe you are wondering why should we do that? Meanwhile, English is the second language, that is authenticated by the community in the world. Actually, the language always creates an invisible connection among people who come from other countries. This is also the helpful advice in business.
Therefore, so as to enhance customer experience on your Magento 2 store, optimizing the site performance is really important while the language is the thing you need to change firsly into the Portuguese language. Regardless of products and services you are providing, you will be closer to the Portuguese consumers if the store displays as a native shop in Portugal.
Other language packages are available at language packs page
Below are two active buttons which are required operations before installing the language package. Let’s hit them to download and contribute Magento 2 Portuguese Language Pack immediately!
Help the Magento Community by contributing translation to this project.
Install the Portuguese language pack via composer is really easier.
Install Portuguese pack:
composer require mageplaza/magento-2-portuguese-language-pack:dev-master php bin/magento setup:static-content:deploy pt_PT 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:
Public Key: c7af1bfc9352e9c986637eec85ed53af Private Key: 17e1b72ea5f0b23e9dbfb1f68dc12b53
Update Portuguese pack:
composer update mageplaza/magento-2-portuguese-language-pack:dev-master php bin/magento setup:static-content:deploy pt_PT php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush
Install the Portuguese language pack via command line.
Download the language file to your installation root directory. Now run the following command:
wget https://github.com/mageplaza/magento-2-portuguese-language-pack/raw/master/pt_PT.csv php bin/magento i18n:pack -m replace pt_PT.csv pt_PT php bin/magento setup:static-content:deploy pt_PT php bin/magento cache:flush
As a result, 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.
Note: additional directory i18n contains strings for which the module could not be found in your installation. This file can be skipped.
It’s time to activate the language pack for your Magento 2 store. From Magento 2 admin panel, navigate to
Stores > Configuration > General > Locale Options
Portuguese (Portugal) and click
This language pack is compatible with Magento Editions:
It comes to the end of the tutorial: Magento 2 Portuguese Language Pack.