Skip to content

[FrameworkBundle] Set only desired locales #31563

Closed
@proArtex

Description

@proArtex

Description
There is no option to set locales that will be used in an app. FrameworkExtension is currently collect all the locales from different bundles (registerTranslatorConfiguration) and then it goes to Translator cache warmer. So I have many extra translations warmed up, but I want to use just a few. They are basically useless and take warmup time.

Example
So translation.yaml might contain available_locales directive:

framework:
    available_locales: ['en', 'fr']

and registerTranslatorConfiguration() function might restrict Finder to that locales.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions