singleton
singleton copied to clipboard
[REQUIREMENT]improve available locales
Available locales should be quired by component because different components may have different available locales. Fox example, a bundle, which only has source, has only source locale.
Add a parameter component
to Config.available_locales() in order to get available locales by component.