Setting Locale based on URI & subdomain in Symfony2

Path vs Domain For the URL you’ve got a few options, that I’m going to simplify down to two. You can set the url based on the domain. e.x. jp.maxvandervelde.com/blog/symfony2-subdomain-locale. Or you can set it based on the path URI. e.x. maxvandervelde.com/jp/blog/symfony2-subdomain-locale. There are ups and downs to both. If you decide to use the … Lire la suite Setting Locale based on URI & subdomain in Symfony2