We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d8ca9 commit 03de10fCopy full SHA for 03de10f
translation/locale.rst
@@ -25,6 +25,12 @@ it::
25
// some logic to determine the $locale
26
$request->setLocale($locale);
27
}
28
+.. note::
29
+
30
+ Using a listener like this requires that it is called **before**
31
+ LocaleListener attempts to access it. In Symfony Framework it is called
32
+ with priority 8 by default. You will need to set your event listener
33
+ with a higher one if you want this to work.
34
35
Read :doc:`/session/locale_sticky_session` for more information on making
36
the user's locale "sticky" to their session.
0 commit comments