{"name":"os-locale","version":"8.0.0","description":"Get the system locale","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/os-locale.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["locale","language","system","os","string","user","country","id","identifier","region"],"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"1a282557e379f4da3733aa744302782fcc741e8d","types":"./index.d.ts","_id":"os-locale@8.0.0","bugs":{"url":"https://github.com/sindresorhus/os-locale/issues"},"homepage":"https://github.com/sindresorhus/os-locale#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-0hdyXRn0wSKMTHCo2CkPJdTKzIhg1Wb7DxJtkeD8M8rRXSwP2ZFRu4UiWBnkjPdRbL5X+AnUVXBE2SZOmkm3dg==","shasum":"b22a286acf569f3c0aeac2c70505d60586e6e29c","tarball":"http://registry-npm.ywwl.com/os-locale/download/os-locale-8.0.0.tgz","fileCount":5,"unpackedSize":3487,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCp8UDuhYwOdcYjswgJu+laY9z2EyL53Y1rWW8UaezCDAIhAPw/U2s5CMmLDjPR0oNKvqycXaG1L39wSP1fcagaKzW9"}],"size":1966,"noattachment":false,"key":"/os-locale/-/os-locale-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/os-locale_8.0.0_1770224768701_0.9059235176449008"},"_hasShrinkwrap":false,"readme":"# os-locale\n\n> Get the system [locale](https://en.wikipedia.org/wiki/Locale_(computer_software))\n\n> [!NOTE]\n> You may want [`new Intl.DateTimeFormat().resolvedOptions().locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/resolvedOptions) instead. This package is useful for CLI tools as it also reads locale from environment variables (`LC_ALL`, `LC_MESSAGES`, `LANG`, `LANGUAGE`), which the Intl API does not fully support (it only respects `LC_ALL`).\n\nUseful for localizing your module or app.\n\nPOSIX systems: The returned locale refers to the [`LC_MESSAGES`](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## Install\n\n```sh\nnpm install os-locale\n```\n\n## Usage\n\n```js\nimport osLocale from 'os-locale';\n\nconsole.log(osLocale());\n//=> 'en-US'\n```\n\n## API\n\n### osLocale()\n\nReturns the locale.\n","publish_time":1770224768892,"_cnpm_publish_time":1770224768892,"dist-tags":{"latest":"8.0.0"}}