Using this code {% trans %}Submitted by {{ author_name }} on {{ node.createdtime|format_date('someformat') }}{% endtrans %} results in format_date filter not being used – only the timestamp "node.createdtime" is printed without being modified.

Comments

alexej_d created an issue. See original summary.

star-szr’s picture

Version: 8.0.0-rc1 » 8.0.x-dev
Issue tags: +Twig
Related issues: +#2334319: {% trans %} does not support render array and MarkupInterface valued placeholders

Thanks for the report!

This is potentially related to another issue. I wonder if other filters have this problem or if it's specific to format_date.

Gábor Hojtsy’s picture

Status: Active » Closed (duplicate)

No filters are supported in trans, see #2610436: Twig templates incorrectly use % trans % with arbitrary filters. Closing as duplicate