gettext() fails when running from command line
It looks like gettext.js has a dependency on console, I assume to get a users language or whatever. This means you cannot run a script that uses gettext from the command line.
I couple of ideas to resolve.
- if console is not available, just return the string "as is"
- Allow the sysop to set a default language that gettext will use
- if console is not available then read the language from the sysop use and use that
I can do a work around shim for gettext within my scripts but it seems like it would be better to solve this within gettext.js itself.