1 # os-locale [![Build Status](https://travis-ci.org/sindresorhus/os-locale.svg?branch=master)](https://travis-ci.org/sindresorhus/os-locale)
3 > Get the system [locale](http://en.wikipedia.org/wiki/Locale)
5 Useful for localizing your module or app.
7 POSIX 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.
13 $ npm install --save os-locale
20 var osLocale = require('os-locale');
22 osLocale(function (err, locale) {
31 ### osLocale([options], callback(error, locale))
33 ### osLocale.sync([options])
42 Set to `false` to avoid spawning subprocesses and instead only resolve the locale from environment variables.
47 MIT © [Sindre Sorhus](http://sindresorhus.com)