"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/os-locale/readme.md" (11 Apr 2017, 1027 Bytes) of package /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

os-locale Build Status

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) {
    //=> 'en_US'


osLocale([options], callback(error, locale))


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