I'm trying to internationalize my website using Symfony. This is my routing.yml:
index:
pattern: /{_locale}
defaults: { _controller: AppBundle:Index:index, _locale: en }
requirements:
_locale: en|fr
When the URL is just "/", "en" locale is set automatically, this is great but I want the browser locale. For exemple, if I'm in France and I type "/", I want redirect to "/fr/", etc.
Can you help me?