os-locale

WebJar for os-locale

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

os-locale
Последняя версия

Последняя версия

3.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

os-locale
WebJar for os-locale
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/os-locale

Скачать os-locale

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/os-locale/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>os-locale</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/os-locale/
implementation 'org.webjars.npm:os-locale:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/os-locale/
implementation ("org.webjars.npm:os-locale:3.1.0")
'org.webjars.npm:os-locale:jar:3.1.0'
<dependency org="org.webjars.npm" name="os-locale" rev="3.1.0">
  <artifact name="os-locale" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='os-locale', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "os-locale" % "3.1.0"
[org.webjars.npm/os-locale "3.1.0"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.npm : execa jar [1.0.0,2)
org.webjars.npm : lcid jar [2.0.0,3)
org.webjars.npm : mem jar [4.0.0,5)

Модули Проекта

Данный проект не имеет модулей.

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.

Install

$ npm install os-locale

Usage

const osLocale = require('os-locale');

(async () => {
	console.log(await osLocale());
	//=> 'en-US'
})();

API

osLocale(options?)

Returns a Promise for the locale.

osLocale.sync(options?)

Returns the locale.

options

Type: object

spawn

Type: boolean
Default: true

Set to false to avoid spawning subprocesses and instead only resolve the locale from environment variables.

os-locale for enterprise

Available as part of the Tidelift Subscription.

The maintainers of os-locale and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Версии библиотеки

Версия
3.1.0
3.0.1
2.1.0
1.4.0