symfony - Twig: Translate DateFormat-> Day -
i have in twig-template
{{ returndate|date("l, d.m.y") }}
the ouput friday, 08.05.2015
. possible translate dayname -> "l"
? {{ returndate|date("l, d.m.y")|trans }}
i had same problem minutes ago! pushed simple, quick & dirty solution:
{{ returndate | date("l") | trans }}, {{ returndate | date("d.m.y") }}
Comments
Post a Comment