Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Add a Composer hook to compress + optionally remove locales not in framework.enabled_locales #51443

Closed
@dkarlovi

Description

@dkarlovi

Description

In #50055 a new compress tool was added. It compresses the dataset and reduces the amount of disk space required, especially important for Docker based deployments.

There exists an opportunity to provide this command as a Composer hook, like Google's API Services package does. This would make the experience for the users more streamlined.

Additional opportunity is to (opt-in) expand the command/hook to remove locales which are not in framework.enabled_locales, much like the translation cache is not built for them.

Example

# compress locale only
bin/console maintenance:locale

# compress + delete any locale not in framework.enabled_locales
bin/console maintenance:locale --leave-enabled-only

# compress + delete any locale not in framework.enabled_locales, but don't delete fr, even if not in framework.enabled_locales
bin/console maintenance:locale --leave-enabled-only --leave fr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions