{"name":"os-locale","version":"1.4.0","description":"Get the system locale","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/os-locale"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["locale","lang","language","system","os","string","str","user","country","id","identifier","region"],"dependencies":{"lcid":"^1.0.0"},"devDependencies":{"ava":"*","require-uncached":"^1.0.2","xo":"*"},"readme":"# os-locale [![Build Status](https://travis-ci.org/sindresorhus/os-locale.svg?branch=master)](https://travis-ci.org/sindresorhus/os-locale)\n\n> Get the system [locale](http://en.wikipedia.org/wiki/Locale)\n\nUseful for localizing your module or app.\n\nPOSIX systems: The returned locale refers to the [`LC_MESSAGE`](http://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html#Locale-Categories) category, suitable for selecting the language used in the user interface for message translation.\n\n\n## Install\n\n```\n$ npm install --save os-locale\n```\n\n\n## Usage\n\n```js\nvar osLocale = require('os-locale');\n\nosLocale(function (err, locale) {\n\tconsole.log(locale);\n\t//=> 'en_US'\n});\n```\n\n\n## API\n\n### osLocale([options], callback(error, locale))\n\n### osLocale.sync([options])\n\nReturns the locale.\n\n#### options.spawn\n\nType: `boolean`  \nDefault: `true`\n\nSet to `false` to avoid spawning subprocesses and instead only resolve the locale from environment variables.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/os-locale/issues"},"homepage":"https://github.com/sindresorhus/os-locale","_id":"os-locale@1.4.0","_shasum":"20f9f17ae29ed345e8bde583b13d2009803c14d9","_from":"https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz","_resolved":"https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz"}