You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It's not uncommon for new users of gettext to use _() in constants, not realize that will translate at first load and not on demand. This is easy to miss in code review.
Describe the solution you'd like
I'd like to see a Cop that checks for usage of _() in constants. Secondarily, if it's possible, it would useful to also detect memoized usage of _() in a class methods or global context.
Describe alternatives you've considered Additional context
None
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It's not uncommon for new users of gettext to use
_()
in constants, not realize that will translate at first load and not on demand. This is easy to miss in code review.Describe the solution you'd like
I'd like to see a Cop that checks for usage of
_()
in constants. Secondarily, if it's possible, it would useful to also detect memoized usage of_()
in a class methods or global context.Describe alternatives you've considered
Additional context
None
The text was updated successfully, but these errors were encountered: