Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

how to get system locale? #9221

Closed
luckydrq opened this issue Feb 14, 2015 · 4 comments
Closed

how to get system locale? #9221

luckydrq opened this issue Feb 14, 2015 · 4 comments

Comments

@luckydrq
Copy link

Is there an api in node for retrieving system(default) locale info? Other language such as java does have a way to do so which is something like java.util.Locale.getDefault().

According to issue #4689, it seems that node needs to bundle v8-i18n to provide such a way. BUT that would make node become too massive. Is it a reason or do i miss something?

@sindresorhus
Copy link

I made a module for this: https://github.com/sindresorhus/os-locale

@srl295
Copy link
Member

srl295 commented Mar 19, 2015

v0.12 already includes i18n on by default in binaries. v8-i18n is obsolete (merged into v8). See #7676 or more importantly the wiki.

Will update more.

@luckydrq
Copy link
Author

@sindresorhus i will use it, thanks!

@luckydrq
Copy link
Author

@srl295 roger that, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants