I'm working on the i18n of my website and all our templates are just plain old English. I'm look for a tool (Google didn't help) that can make adding translation tags semi-automatic.
So for example from an input template:
Hello {{ name }}
<a href="/logout">Log out</a>
It would make:
{% trans with {'%name%': name} from 'app' %}sayhello %name%{% endtrans %}
<a href="/logout">{% trans %}logout_text{% endtrans %}</a>
And YML:
sayhello %name%: Hello %name%
logout_text: Log out
Since someone needs to add the placeholder names for the translation, I imagine this would be some interactive program parsing Twig templates in the project.
Are you aware of anything like that?