Created
August 16, 2016 12:33
-
-
Save BenRichter/51c35d8056a0a081bfb4fb91cd90bf01 to your computer and use it in GitHub Desktop.
Find replace old Twig translation tags with new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find: \{% trans %\}([\w\.-]+)\{% endtrans %\} | |
Replace: {{ '$1'|trans }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find: \{% trans from \'(\w*)\' %\}([\w\.-]+)\{% endtrans %\} | |
Replace: {{ '$2'|trans({}, '$1') }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment