Skip to content

Commit 154e0d9

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Translation] fix wrong information
2 parents 125fc04 + d55e4b1 commit 154e0d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

translation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,8 @@ of:
860860

861861
* All the services that are tagged with ``kernel.locale_aware``;
862862
* ``\Locale::setDefault()``;
863-
* If a request is available, the ``_locale`` request attribute::
863+
* If the ``RequestContext`` service is available, the ``_locale``
864+
parameter (so urls are generated with the new locale)::
864865

865866
use Symfony\Component\Translation\LocaleSwitcher;
866867

0 commit comments

Comments
 (0)