You can dig in (I guess, tell me if I have to add some permission), but I will try something ;)

Also I was thinking, you could wrap into a function and make no change (or maybe just a little) to gettext.js as it already perform check on argument.