We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a7eb2 commit 110ce4dCopy full SHA for 110ce4d
translation.rst
@@ -1104,6 +1104,13 @@ just to run some code. Imagine a console command that renders Twig templates
1104
of emails in different languages. You need to change the locale only to
1105
render those templates.
1106
1107
+.. note::
1108
+
1109
+ The LocaleSwitcher will apply the locale at a request level
1110
+ this means that it will be available only for that request. A
1111
+ redirect, for example, will cancel the LocaleSwitcher's effect.
1112
+ For a permanent locale switch between requests see https://symfony.com/doc/current/session.html#making-the-locale-sticky-during-a-user-s-session.
1113
1114
The ``LocaleSwitcher`` class allows you to change at once the locale
1115
of:
1116
0 commit comments