Comments (6)
I don't really see the point of supporting older than Vista.
All right. I'll switch back to locale only then. This also simplifies the build process a lot.
locale
v1.0.0 now only prints en-US
again.
from os-locale.
- Is this path the same for all Windows version and locales?
from os-locale.
// @MarkTiedemann Idea for a Windows binary, if you need project ideas. A simple binary to get the locale on Windows. So we don't have to use wmic
.
from os-locale.
@sindresorhus Done. See: locale. Note that it prints en-US
instead of en_US
.
from os-locale.
Updated locale
(v0.2.0) to work for Windows < Windows Vista, too.
:: If Windows Vista or greater
$ locale
{"locale":"en-US"}
:: Else
$ locale
{"lcid":1033}
@sindresorhus Let me know if you need anything else. :)
from os-locale.
I don't really see the point of supporting older than Vista. Those are ancient versions and not worth our time. I'm not going to support them anyway, so I personally preferred the first version that only printed a string, but I can work with this too and only use the locale
property :)
from os-locale.
Related Issues (20)
- Errors exec-ing locale and defaults
- frightening warnings being displayed when detecting locale HOT 5
- Bad locale resolution based on POSIX variables HOT 3
- Can not get Locale in Mac with locale zh_ch.utf8 HOT 5
- Switch to a Promise interface HOT 4
- Custom defaultLocale like en instead of en_US? HOT 2
- [feature request] return system encoding HOT 3
- TypeError HOT 2
- Generating invalid locale
- After upgrade electron to 2.0.3 os-locale is not working HOT 1
- Use dash instead of underscore to be standard compliant HOT 2
- Release v2.1.1 with mem 4.0.0 HOT 1
- Security issue
- yarn test causing "Error while loading rule '@typescript-eslint/await-thenable'" HOT 1
- Module build failed: UnhandledSchemeError: Reading from "node:child_process" is not handled by plugins (Unhandled scheme) HOT 2
- Get error message: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module while import os-locale HOT 6
- support Apple Languages
- Locale detection for macOS seems broken HOT 1
- How to read `LC_TIME` with this lib? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from os-locale.