aXent / laravel-analyze-locale

This scans your laravel project for used locale keys that aren't translated by your locale files.
25 stars 4 forks source link

Support for __ function #5

Open kaypro4 opened 7 years ago

kaypro4 commented 7 years ago

Hello, this is a very handy tool however it would be great if it supported the more recent standard function. I was able to get it to work by just replacing "trans" with "" in this file below but I failed in adding it as an additional element in the regex pattern.

For someone with some regex skills it seems this would be pretty straightforward.

https://github.com/aXent/laravel-analyze-locale/blob/master/src/Console/Commands/AnalyzeLocaleCommand.php#L189

I'll come back to it if I have time and submit a PR, but figured I would add it here in case someone has a moment to address.

Thanks