Added another "before" possibility to retrieve the locale from a Twig template.
This commit is contained in:
parent
b95fe53bf4
commit
c915f4851f
|
@ -28,7 +28,7 @@ UPGRADE FROM 2.0 to 2.1
|
||||||
|
|
||||||
Retrieving the locale from a Twig template:
|
Retrieving the locale from a Twig template:
|
||||||
|
|
||||||
Before: {{ app.request.session.locale }}
|
Before: {{ app.request.session.locale }} or {{ app.session.locale }}
|
||||||
After: {{ app.request.locale }}
|
After: {{ app.request.locale }}
|
||||||
|
|
||||||
Retrieving the locale from a PHP template:
|
Retrieving the locale from a PHP template:
|
||||||
|
|
Reference in New Issue