https://github.com/tiagodanin/windows-locale
Windows Language Code Identifier (LCID) for JavaScript
https://github.com/tiagodanin/windows-locale
code i18n language languages lcid locale locales tag windows
Last synced: 9 months ago
JSON representation
Windows Language Code Identifier (LCID) for JavaScript
- Host: GitHub
- URL: https://github.com/tiagodanin/windows-locale
- Owner: TiagoDanin
- License: mit
- Created: 2019-04-28T17:14:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-10-07T04:50:37.000Z (9 months ago)
- Last Synced: 2025-10-07T06:28:50.561Z (9 months ago)
- Topics: code, i18n, language, languages, lcid, locale, locales, tag, windows
- Language: JavaScript
- Size: 156 KB
- Stars: 3
- Watchers: 1
- Forks: 5
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Windows Locale
[](https://npmjs.org/package/windows-locale) [](https://npmjs.org/package/windows-locale) [](https://npmjs.org/package/windows-locale)
Windows Language Code Identifier (LCID) for JavaScript
## Installation
Module available through the [npm registry](https://www.npmjs.com/). It can be installed using the [`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally) or [`yarn`](https://yarnpkg.com/en/) command line tools.
```sh
# NPM
npm install windows-locale --save
# Or Using Yarn
yarn add windows-locale
```
## Example
```js
const locale = require('windows-locale')
console.log(locale['pt-br'])
/*
{
language: 'Portuguese',
location: 'Brazil',
id: 1046,
tag: 'pt-BR',
version: 'ReleaseA'
}
*/
```
## Documentation
### `locale`
List of Languages
### `locale[language]`
Get Windows Language Code Identifier (LCID) information
- language (String)
- location (String || Null)
- id (Number)
- tag (String)
- version (String)
### Source
**NOTE:** Source is [winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-LCID/%5bMS-LCID%5d.pdf](https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-LCID/%5bMS-LCID%5d.pdf)
## Dependencies
None
## Dev Dependencies
- [pdf2json](https://ghub.io/pdf2json): A PDF file parser that converts PDF binaries to text based JSON, powered by porting a fork of PDF.JS to Node.js
## Contributors
Pull requests and stars are always welcome. For bugs and feature requests, please [create an issue](https://github.com/TiagoDanin/Windows-Locale/issues). [List of all contributors](https://github.com/TiagoDanin/Windows-Locale/graphs/contributors).
## License
[MIT](LICENSE) © [Tiago Danin](https://TiagoDanin.github.io)