Skip to content

Translator : Retrieve every locales avalaible #13919

Closed
@xavierleune

Description

@xavierleune

Hi,

I'm concerned about having no file generated in cache folder at runtime. My last problem is about the translation catalogues which are lazy loaded.
In fact I've read many lines of code and many issues about translator, there is actually no way to retrieve the list of locales.
Actually my idea is to add an optionnal entry to the "framework" conf key, to list available locales. If this entry is filled, it would be easy to run Translator::getCatalogue in a cache warmer. It means no BC Break and like other cache in symfony, the actual working would remain this one : if the cache file exists, load it. If not, create it and load it.

This patch is easy to do and I would be glad to do it, but I want to have your point of view before submitting my PR.

What do you think about it ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions