I'm looking for the best way to translate my project based on hostname.
I already use routing with hostname. It works well.
- www.mywebsite.com => redirect to the best hostname (based on locale code)
- mywebsite.fr => french
- mywebsite.es => spanish
- fr.mywebsite.com => french
- en.mywebsite.com => english ...
I don't want to use a "huge" ControllerBase. Does it exist a way with routing or with dispatcher?