How LocaleProvider works
mainThe bundle centralizes locale configuration through a LocaleProviderInterface.
By default, a SimpleLocaleProvider is registered and configured based on your bundle settings. If you need custom logic for determining available locales, you can replace the default service by configuring the locale_provider key in your bundle configuration.