pmaxs / silex-locale

Silex service provider to adjust locale/language via url
4 stars 0 forks source link

Locale as GET parameter #4

Open pmpr opened 7 years ago

pmpr commented 7 years ago

Due to many arguments on setting Locale on GET parameter or not out there, I think that is not a good thing to put the locale on GET parameters:

http://example.com/resources/123?_locale=en
http://example.com/resources/123?_locale=de

Instead it would be more powerful, SEO-friendly to put it in the url path:

http://example.com/en/resources/123
http://example.com/de/resources/123