diff --git a/translation.rst b/translation.rst index 9e7d25d21c2..db8c4c37677 100644 --- a/translation.rst +++ b/translation.rst @@ -853,7 +853,8 @@ of: * All the services that are tagged with ``kernel.locale_aware``; * ``\Locale::setDefault()``; -* If a request is available, the ``_locale`` request attribute:: +* If the ``RequestContext`` service is available, the ``_locale`` + parameter (so urls are generated with the new locale):: use Symfony\Component\Translation\LocaleSwitcher;