From 87a2dc27f1f18d6e90cf55471137f7cc96783271 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Wed, 18 Jan 2023 14:16:51 -0500 Subject: [PATCH] [Translation] fix wrong information --- translation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;