-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
When using a custom templating engine like Laravel blade or twig it can be interesting to create your own translation function or even just a custom function in WP. I use blade and created a directive @t() the wraps __() and adds a bit more functionality like a default text domain and string interpolation. As expected, these custom keys/functions are not included in the resulting pot file.
Describe the solution you'd like
I would love to add an optional argument allowing custom keys/functions to be included in the resulting pot.
For example the -k flag available in the xgettext command.