Skip to content

Commit d55e4b1

Browse files
committed
bug #17774 [Translation] fix wrong information (kbond)
This PR was merged into the 6.1 branch. Discussion ---------- [Translation] fix wrong information Ref: #16727 (comment) Commits ------- 87a2dc2 [Translation] fix wrong information
2 parents 5903893 + 87a2dc2 commit d55e4b1

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
@@ -853,7 +853,8 @@ of:
853853

854854
* All the services that are tagged with ``kernel.locale_aware``;
855855
* ``\Locale::setDefault()``;
856-
* If a request is available, the ``_locale`` request attribute::
856+
* If the ``RequestContext`` service is available, the ``_locale``
857+
parameter (so urls are generated with the new locale)::
857858

858859
use Symfony\Component\Translation\LocaleSwitcher;
859860

0 commit comments

Comments
 (0)