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 1492f3e commit 531909dCopy full SHA for 531909d
translation/locale.rst
@@ -28,9 +28,10 @@ it::
28
29
.. note::
30
31
- Using a listener like this requires that it is called **before**
32
- LocaleListener attempts to access it. You will need to set your event listener
33
- with a higher priority if you want this to work.
+ The custom listener must be called **before** ``LocaleListener``, which
+ initializes the locale based on the current request. To do so, set your
+ listener priority to a higher value than ``LocaleListener`` priority (which
34
+ you can obtain running the ``debug:event kernel.request`` command).
35
36
Read :doc:`/session/locale_sticky_session` for more information on making
37
the user's locale "sticky" to their session.
0 commit comments