I'm looking for a way to search in a folder with .phtml
files and 'scan' the files for words.
This what I have in my .phtml
files (twig engine):
<span>{{ 'language'|trans }}</span>
<a href="#">{{ 'Settings'|trans }}</a>
I have multiple .phtml files with these translations in it.
Now I would like to scan all the files and search for the strings before the |trans
.
Is there a way to do this? And could you give me a tip how to begin with this? Because I have no clue how to start with this.