We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aa73ff commit 615696fCopy full SHA for 615696f
book/localization.rst
@@ -70,6 +70,8 @@ For the developer the only touching points with localizations are the
70
configuration and the eventual use of a language switcher on the homepage.
71
For the language switcher the ``localizations`` variable delivered to the twig template
72
can be used, which contains an associative array with the parameters ``locale``, ``url`` and ``country``.
73
+The currently active locale can be obtained from the underlying Symfony Request
74
+object with ``app.locale``.
75
76
.. code-block:: twig
77
0 commit comments