0

I have Magento 2 installation with a lot of websites and one website has language which other websites don't. When I execute setup:static-content:deploy it generates the language for all store views I have. It's strange behavior, I think it should generate this language only for a particular website and store view, isn't it? Any thoughts on this? Magento 2.4.6-p2.

P.S. To add an exclude theme parameter to setup:static-content:deploy isn't a solution for me, because I need to solve it globally.

1
  • you need to pass all language in argument with deploying php bin/magento setup:static-content:deploy en_US en_GB en_AU and so on will resolve your issue i think by default it will deploy en_US only
    – Aman Alam
    Commented Mar 25 at 20:05

1 Answer 1

0

You need to pass languages seperately in argument while deploying like below cli command

php bin/magento setup:static-content:deploy en_US en_GB en_AU es_ES

It will resolve your issue, by default it will deploy en_US only.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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