Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FrameworkBundle] Set only desired locales #31563

Open
proArtex opened this issue May 21, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@proArtex
Copy link

commented May 21, 2019

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.

@javiereguiluz

This comment has been minimized.

Copy link
Member

commented Jul 5, 2019

I think we should explore this idea. It's only a guess ... but the performance improvement should be noticeable because Symfony would track/parse fewer files and would created fewer catalog files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.