I'm facing issues while update language code for website.

<!doctype html>
<html lang="en">

I want to change it with en-GB. I've already locale setup with default configurations.

Any help would be appreciate.


Set Locale from Admin >> Store >> Configuration >> General >> General >> Locale Option >> Locale >> English (United Kingdom)

Set above configuration and run below command, It will generate only pub\static\frontend\VendorName\thmemeName\en_GB

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
| improve this answer | |
  • Already did this. I mention this is question. If you've other solution Please go ahead. – anonymous Nov 21 '18 at 5:17
  • Have you tried with the localization tag? "php bin/magento setup:static-content:deploy en_GB" – Milind Singh Nov 21 '18 at 5:19
  • Did you check it this folder create or not? pub\static\frontend\VendorName\thmemeName\en_GB – Rohan Hapani Nov 21 '18 at 5:22
  • If not then you can try php bin/magento setup:static-content:deploy en_GB command as per Milind Singh mention here. Because, by default it will deploy en_US – Rohan Hapani Nov 21 '18 at 5:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.