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
I'm getting ready to use this on the new Validation library, and realized we have a need that I think Strauss would be a great fit for.
In the library we're using the WordPress __() translation function. The trick with that function is that the domain can't be a variable, it has to be a plain string for generating the POT file. That would mean the domain would need to be changed from some placeholder to whatever it ought to be during the build process.
The crew at Modern Tribe recently threw a script together that accomplishes this task. But it feels like something that would be a great fit for Strauss to handle.
Thanks!
The text was updated successfully, but these errors were encountered:
In the meantime, I ended up including a script with Validation that is run before Strauss which swaps out the domain. Still, this would have to be done with every package, so having this as part of Strauss would be awesome.
I'm getting ready to use this on the new Validation library, and realized we have a need that I think Strauss would be a great fit for.
In the library we're using the WordPress
__()
translation function. The trick with that function is that the domain can't be a variable, it has to be a plain string for generating the POT file. That would mean the domain would need to be changed from some placeholder to whatever it ought to be during the build process.The crew at Modern Tribe recently threw a script together that accomplishes this task. But it feels like something that would be a great fit for Strauss to handle.
Thanks!
The text was updated successfully, but these errors were encountered: