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.

asked Mar 25, 2024 at 19:38
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 Commented Mar 25, 2024 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.

answered Mar 25, 2024 at 20:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.