Socket
Socket
Sign inDemoInstall

lcid

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lcid - npm Package Compare versions

Comparing version 3.1.1 to 4.0.0

10

index.d.ts

@@ -5,7 +5,7 @@ import lcidCodes = require('./lcid.json');

/**
Get a [standard locale identifier](https://en.wikipedia.org/wiki/Locale_(computer_software)) from a [Windows locale identifier (LCID)](http://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms).
Get a [standard locale identifier](https://en.wikipedia.org/wiki/Locale_(computer_software)) from a [Windows locale identifier (LCID)](https://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms).
@example
```
import lcid = require('lcid');
import lcid from 'lcid';

@@ -23,3 +23,3 @@ lcid.from(1044);

```
import lcid = require('lcid');
import lcid from 'lcid';

@@ -33,7 +33,7 @@ lcid.to('nb_NO');

/**
Mapping between [standard locale identifiers](https://en.wikipedia.org/wiki/Locale_(computer_software)) and [Windows locale identifiers (LCID)](http://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms).
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).
@example
```
import lcid = require('lcid');
import lcid from 'lcid';

@@ -40,0 +40,0 @@ lcid.all;

@@ -12,3 +12,3 @@ {

"1033": "en_US",
"1034": "es_ES",
"1034": "es_ES",
"1035": "fi_FI",

@@ -50,3 +50,6 @@ "1036": "fr_FR",

"1071": "mk_MK",
"1072": "st_ZA",
"1073": "ts_ZA",
"1074": "tn_ZA",
"1075": "ven_ZA",
"1076": "xh_ZA",

@@ -60,2 +63,4 @@ "1077": "zu_ZA",

"1083": "se_NO",
"1084": "gd_GB",
"1085": "yi",
"1086": "ms_MY",

@@ -86,5 +91,8 @@ "1087": "kk_KZ",

"1111": "kok_IN",
"1113": "sd_IN",
"1114": "syr_SY",
"1115": "si_LK",
"1116": "chr_US",
"1118": "am_ET",
"1119": "tmz",
"1121": "ne_NP",

@@ -95,3 +103,6 @@ "1122": "fy_NL",

"1125": "div_MV",
"1126": "bin_NG",
"1127": "fuv_NG",
"1128": "ha_NG",
"1129": "ibb_NG",
"1130": "yo_NG",

@@ -127,2 +138,4 @@ "1131": "quz_BO",

"2070": "pt_PT",
"2072": "ro_MD",
"2073": "ru_MD",
"2077": "sv_FI",

@@ -140,3 +153,5 @@ "2080": "ur_IN",

"2143": "tmz_DZ",
"2145": "ne_IN",
"2155": "quz_EC",
"2163": "ti_ET",
"3073": "ar_EG",

@@ -174,2 +189,3 @@ "3076": "zh_HK",

"7178": "es_DO",
"7180": "fr_029",
"7194": "sr_BA",

@@ -180,2 +196,3 @@ "7227": "sma_SE",

"8202": "es_VE",
"8204": "fr_RE",
"8218": "bs_BA",

@@ -186,2 +203,3 @@ "8251": "sms_FI",

"9226": "es_CO",
"9228": "fr_CG",
"9275": "smn_FI",

@@ -191,20 +209,29 @@ "10241": "ar_SY",

"10250": "es_PE",
"10252": "fr_SN",
"11265": "ar_JO",
"11273": "en_TT",
"11274": "es_AR",
"11276": "fr_CM",
"12289": "ar_LB",
"12297": "en_ZW",
"12298": "es_EC",
"12300": "fr_CI",
"13313": "ar_KW",
"13321": "en_PH",
"13322": "es_CL",
"13324": "fr_ML",
"14337": "ar_AE",
"14345": "en_ID",
"14346": "es_UR",
"14348": "fr_MA",
"15361": "ar_BH",
"15369": "en_HK",
"15370": "es_PY",
"15372": "fr_HT",
"16385": "ar_QA",
"16393": "en_IN",
"16394": "es_BO",
"17417": "en_MY",
"17418": "es_SV",
"18441": "en_IN",
"18441": "en_SG",
"18442": "es_HN",

@@ -211,0 +238,0 @@ "19466": "es_NI",

{
"name": "lcid",
"version": "3.1.1",
"version": "4.0.0",
"description": "Mapping between standard locale identifiers and Windows locale identifiers (LCID)",
"license": "MIT",
"repository": "sindresorhus/lcid",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": ">=8"
"node": ">=14.16"
},

@@ -48,3 +53,9 @@ "scripts": {

"xo": "^0.24.0"
},
"xo": {
"rules": {
"import/extensions": "off",
"import/no-unresolved": "off"
}
}
}

@@ -1,21 +0,17 @@

# lcid [![Build Status](https://travis-ci.org/sindresorhus/lcid.svg?branch=master)](https://travis-ci.org/sindresorhus/lcid)
# 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)
Based on the [mapping](https://github.com/python/cpython/blob/8f7bb100d0fa7fb2714f3953b5b627878277c7c6/Lib/locale.py#L1465-L1674) used in the Python standard library.
The mapping itself is just a [JSON file](lcid.json) and can be used anywhere.
## Install
```
```sh
$ npm install lcid
```
## Usage
```js
const lcid = require('lcid');
import lcid from 'lcid';

@@ -31,14 +27,1 @@ lcid.from(1044);

```
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-lcid?utm_source=npm-lcid&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc