Magento – Updating country name in magento 2

country-regionsdirectorymagento2

I need to change the name of country in magento store e.g. United Kingdom needs to be changed to Great Britain. How can I achieve this?

I tried looking at the following tables directory_country_region, directory_country_region_name, directory_country but country full names are not stored here.

I also tried using locale files to see if it updates, but no luck there as well.

Is there any way I can achieve this?

Best Answer

The easiest way for changing the label is by translation.

You need to just make i18N folder in your app/code/namespace/modulename/i18n and just create one CSV file en_US.csv and give translation script over there.

See Example : en_US.csv

"United Kingdom","Great Britain"

No need to do anything for the small change.

Related Topic