Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
star-szrThanks 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.
Comment #3
Gábor HojtsyNo filters are supported in trans, see #2610436: Twig templates incorrectly use % trans % with arbitrary filters. Closing as duplicate