Needs work
Project:
Translation Extractor
Version:
8.x-1.01
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2019 at 20:59 UTC
Updated:
12 Jul 2022 at 13:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
skaughtComment #3
skaughtComment #4
chili.hh commentedHi SKAUGHT,
I tried your patch, but your regex does not seem to capture reliably. For example, I couldn't get it to work on the module votingapi_widgets, which contains {{ trans }} tags in twig files like below:
Could you review your regex please? I'll be happy to include it in the module default config.
Comment #5
skaughti see. twig has a wide range of possible use-cases -- is part of the problem.. off hand, i'm not sure how to cover this in one condition. maybe a second (or more) entry would be good to use.
Comment #6
skaughtroll into 1.3
Comment #7
ccrosazHello @SKAUGHT,
I just apply your patch by hand locally on my own config, on a version 8.x-1.3, and it works like a charm.
Thanks for this solution saving my time on extracting twig translation strings (simple |t).