sensordb2 e64a8defe5 3.17 | 1 yıl önce | |
---|---|---|
.. | ||
index.js | 1 yıl önce | |
license | 1 yıl önce | |
package.json | 1 yıl önce | |
readme.md | 1 yıl önce |
Get the system locale
Useful for localizing your module or app.
POSIX systems: The returned locale refers to the LC_MESSAGE
category, suitable for selecting the language used in the user interface for message translation.
$ npm install --save os-locale
var osLocale = require('os-locale');
osLocale(function (err, locale) {
console.log(locale);
//=> 'en_US'
});
Returns the locale.
Type: boolean
Default: true
Set to false
to avoid spawning subprocesses and instead only resolve the locale from environment variables.
MIT © Sindre Sorhus