# lcid

> Mapping between standard locale identifiers and Windows locale identifiers (LCID)

Latest version **5.0.0** (published 2024-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install lcid
pnpm add lcid
yarn add lcid
bun add lcid
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2024-04-30 |
| First published | 2015-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.20 |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 38 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | lcid, locale, string, id, identifier, windows, language, lang, map, mapping, convert, json, bcp47, ietf, tag |

## Links

- npm: https://www.npmjs.com/package/lcid
- Repository: https://github.com/sindresorhus/lcid
- Homepage: https://github.com/sindresorhus/lcid#readme
- Issues: https://github.com/sindresorhus/lcid/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/lcid

## Dependencies (1)

- [invert-kv](https://npm.io/package/invert-kv.md) ^4.2.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 5.0.0 (latest) — 2024-04-30
- 4.0.1 — 2023-01-17
- 4.0.0 — 2022-11-04
- 3.1.1 — 2019-10-03
- 3.1.0 — 2019-09-22
- 3.0.0 — 2019-04-30
- 2.0.0 — 2018-08-06
- 1.0.0 — 2015-03-16

## README

# lcid

> Mapping between [standard locale identifiers](https://en.wikipedia.org/wiki/Locale_(computer_software)) and [Windows locale identifiers (LCID)](https://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms)

The mapping itself is just a [JSON file](lcid.json) and can be used anywhere.

## Install

```sh
npm install lcid
```

## Usage

```js
import lcid from 'lcid';

lcid.from(1044);
//=> 'nb_NO'

lcid.to('nb_NO');
//=> 1044

lcid.all;
//=> {'af_ZA': 1078, …}
```

---
_Source: https://npm.io/package/lcid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
