GitShow/sindresorhus/os-locale
sindresorhus

os-locale

Get the system locale

by sindresorhus
Star on GitHubForknpm

JavaScript

231 stars42 forks18 contributorsQuiet · 6mo agoSince 2015v8.0.0MIT

Meet the team

See all 18 on GitHub →
sindresorhus
sindresorhus49 contributions
fregante
fregante4 contributions
kevva
kevva2 contributions
artursvonda
artursvonda2 contributions
coreyfarrell
coreyfarrell1 contribution
danielhusar
danielhusar1 contribution
BendingBender
BendingBender1 contribution
jvdm
jvdm1 contribution

Languages

View on GitHub →
JavaScript95.8%
TypeScript4.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
shaunthegeek
support Apple LanguagesClosedIssue

locale is not enough, such as means two languages and . macOS shell:

shaunthegeek · 6mo ago
stuartbrussell-intuit
os-locale calls wmic with no extension and without explicit pathClosedIssue

Our Windows app that uses os-locale has been flagged as a security risk because it will launch any file named "wmic", regardless of extension, and the file can be anywhere on the PATH, including the app's own directory. It could be a vbs file, for example. The suggested secure way (if you have to use wmic): 1. Always use the exe extension. 2. Always use the full standard path to wmic.exe.

stuartbrussell-intuit · 6mo ago
maninak
How to read `LC_TIME` with this lib?ClosedIssue

Is that even possible? If not, are you interested in implementing this? It can often be the case that users set a LC_TIME value differently than , , or .

maninak · 2y ago
Structured data for AI agents

Repository: sindresorhus/os-locale. Description: Get the system locale Stars: 231, Forks: 42. Primary language: JavaScript. Languages: JavaScript (95.8%), TypeScript (4.2%). License: MIT. Latest release: v8.0.0 (6mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: sindresorhus, fregante, kevva, artursvonda, coreyfarrell, danielhusar, BendingBender, jvdm, jeffal, Helium-Z and others.

·@ofershap

Replace github.com with gitshow.dev