Skip to content

[Issue] Deploy all used locales #29218

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #28922: Deploy all used locales


Preconditions: (*)

bin/magento setup:static-content:deploy --language=all currently only
deploys en_US, instead of the requested "all". This pull request aims to deploy all used languages for the frontend and all configured languages by admin users, when no language parameter is given. en_US is always additionally deployed by default.

Related Pull Requests

Fixed Issues (if relevant)

Steps to reproduce (*)

  1. Configure multiple store views with different locales.
  2. Configure a locale other than en_US for your admin user.
  3. run bin/magento setup:static-content:deploy --language=all and verify that all configured languages, plus en_US are deployed.
  4. run bin/magento setup:static-content:deploy --language=all --exclude-language=en_US and verify that en_US is skipped.
  5. run bin/magento setup:static-content:deploy en_US and verify that only en_US is deployed
  6. run bin/magento setup:static-content:deploy --language=en_US and verify that only en_US is deployed
  7. run bin/magento setup:static-content:deploy -l en_US and verify that only en_US is deployed
  8. run bin/magento setup:static-content:deploy --language=en_US en_UK and verify that only en_UK is deployed as the languages argument precedes over the language option

Actual Result:

Expected Result:

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: DeployComponent: SetupFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions