Not common afaik. Detect locales with https://github.com/sindresorhus/os-locale …, see Intl & use https://github.com/mashpie/i18n-node … (or ~) for language switching
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
it's not common and worth it in my opinion.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
/cc
@srl295 some of the intl work being done in node should make this easierThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
typically LANGUAGE or LANG env var is set. See https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
type `locale` in console to see all info. Usually `LANG` is what you're looking for.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
most of the GNU tools are intl'ed.. so imho its common for tools that are used in big scale. 100% worth
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
yargs does it using y18n, pretty neat I think, but def uncommon for other tools
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I don't think so, it would mess up documentation and generally confuse people
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
For dev-oriented tools, I'd say it's not even desirable. Translations are often lousy and can't be looked up (eg. Apache's errors)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
For user-oriented CLI tools (few, I'd guess), that's another story
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 