0

I want to determine user locale and set corresponding parameter in router in such a way as to set it into url. I tried to set locale to request object and session on kernel.request event, but it always set default locale parameter into url.

I saw needed behaviour in symfony cmf, but haven't found how that implemented. Have read documentation. Have searched for answer. No results.

Sergey
  • 1,000
  • 8
  • 19

1 Answers1

0

Try this

http://symfony.com/doc/current/cookbook/session/locale_sticky_session.html

or this, depending on what you are after

Symfony2 default locale in routing

Community
  • 1
  • 1
Bartłomiej Wach
  • 1,968
  • 1
  • 11
  • 17