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 creating a grunt task for extracting strings from WordPress and it has been working fine so far, thanks so much! The issue I bumped into was the _nx() function in WordPress. The first parameter is the singular, the second is the plural, the third is the context.
My keywords are set up as below:
keywords: ["_ex:1,2c", "_x:1,2c", "_nx:1,2,3c"],
In this case the functions are not parsed at all. When I use _nx:1,2 it works fine but doesn't parse the context. If it would be possible to implement this easily that would be awesome. Once I get some breathing room from the project I'll try and submit a pull request if it remains unresolved.
Thanks so much for the grunt task :)
The text was updated successfully, but these errors were encountered:
I'm creating a grunt task for extracting strings from WordPress and it has been working fine so far, thanks so much! The issue I bumped into was the
_nx()
function in WordPress. The first parameter is the singular, the second is the plural, the third is the context.My keywords are set up as below:
In this case the functions are not parsed at all. When I use
_nx:1,2
it works fine but doesn't parse the context. If it would be possible to implement this easily that would be awesome. Once I get some breathing room from the project I'll try and submit a pull request if it remains unresolved.Thanks so much for the grunt task :)
The text was updated successfully, but these errors were encountered: