Potx doesn't recognize t filters in twig 3.21

Created on 3 June 2025, about 1 month ago

Somewhere between twig 3.20 and 3.21.1 pipes have been changed from PUNCTUATION_TYPE to OPERATOR_TYPE so if you have strings translated like {{ 'test'|t }} potx won't detect them.

Attached patch fixes this for us, but there should probably be a more robust fix that works for both twig versions.

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024