Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cldr-data

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cldr-data - npm Package Compare versions

Comparing version 26.0.10 to 27.0.0

1

index.js

@@ -18,3 +18,2 @@ /**

path = _path.join("json", path);
return require("./" + path);

@@ -21,0 +20,0 @@ }

4

package.json
{
"name": "cldr-data",
"version": "26.0.10",
"version": "27.0.0",
"keywords": [

@@ -33,3 +33,3 @@ "unicode",

"dependencies": {
"cldr-data-downloader": "0.1.x"
"cldr-data-downloader": "0.2.x"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -21,5 +21,7 @@ # Npm's cldr-data

On the `package.json` of your i18n library, define its CLDR data dependency.
compatible with.
### For libraries
On the `package.json` of your i18n library, define its CLDR data dependency by
using the *peerDependencies* property.
"peerDependencies": {

@@ -32,6 +34,4 @@ "cldr-data": ">=26"

```javascript
cldr = require("cldr-data");
function Pluralize(locale) {
var plurals = cldr("supplemental/plurals");
var plurals = require("cldr-data/supplemental/plurals");
var language = extractLanguageFrom(locale);

@@ -56,9 +56,22 @@

### Locale coverage
### For applications
By default, the locale coverage installed is `core`, which Unicode defines as
the top tier languages and is equivalent to the `json.zip` content. There exists two solutions to get the full coverage: either by setting the environmental variable `CLDR_COVERAGE` to `full` or define the coverage in your `package.json`.
On the `package.json` of your applications, define its CLDR data dependency by
using the *dependencies* or *devDependencies*property.
#### Environmental variable
In this example we are installing `cldr-data` by setting the `CLDR_COVERAGE` to `full`:
"dependencies": {
"cldr-data": "26",
"libraries-that-use-cldr-data": "x"
}
#### Locale coverage
By default, the locale coverage installed is **core**, which Unicode defines as
the top tier languages and is equivalent to the `json.zip` content. There are
two ways to modify the installation and get the **full** coverage instead.
*Use the environment variable `CLDR_COVERAGE`*
On the command line, set the locale coverage using the environment variable.
```

@@ -68,4 +81,7 @@ $ CLDR_COVERAGE=full npm install

#### package.json
Define your coverage by setting the property `cldr-data-coverage` in your `package.json:
*Use the package.json `cldr-data-coverage` property*
On the `package.json` of you application, set the locale coverage using the
`cldr-data-coverage` property.
```

@@ -72,0 +88,0 @@ {

{
"core": "http://www.unicode.org/Public/cldr/26.0.1/json.zip",
"full": "http://www.unicode.org/Public/cldr/26.0.1/json-full.zip"
"core": [
"https://github.com/unicode-cldr/cldr-core/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-dates-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-localenames-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-misc-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-numbers-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-segments-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-units-modern/archive/27.0.0.zip"
],
"full": [
"https://github.com/unicode-cldr/cldr-core/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-segments-modern/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-dates-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-buddhist-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-chinese-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-coptic-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-dangi-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-ethiopic-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-hebrew-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-indian-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-islamic-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-japanese-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-persian-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-cal-roc-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-localenames-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-misc-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-numbers-full/archive/27.0.0.zip",
"https://github.com/unicode-cldr/cldr-units-full/archive/27.0.0.zip"
]
}
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