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