8000 Added another "before" possibility to retrieve the locale from a Twig… · vatson/symfony@c915f48 · GitHub
[go: up one dir, main page]

Skip to content

Commit c915f48

Browse files
committed
Added another "before" possibility to retrieve the locale from a Twig template.
1 parent b95fe53 commit c915f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UPGRADE-2.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ UPGRADE FROM 2.0 to 2.1
2828

2929
Retrieving the locale from a Twig template:
3030

31-
Before: {{ app.request.session.locale }}
31+
Before: {{ app.request.session.locale }} or {{ app.session.locale }}
3232
After: {{ app.request.locale }}
3333

3434
Retrieving the locale from a PHP template:

0 commit comments

Comments
 (0)
0