Comparing version 26.0.10 to 27.0.0
@@ -18,3 +18,2 @@ /** | ||
path = _path.join("json", path); | ||
return require("./" + path); | ||
@@ -21,0 +20,0 @@ } |
{ | ||
"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" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12872
169
94
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@0.2.01.0.0(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedaws-sign2@0.6.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbl@1.1.2(transitive)
+ Addedcaseless@0.11.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcldr-data-downloader@0.2.5(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@1.0.1(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-validator@2.0.6(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhawk@3.1.3(transitive)
+ Addedhttp-signature@1.1.1(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedoauth-sign@0.8.2(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedqs@6.2.4(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrequest@2.74.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtough-cookie@2.3.4(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedasn1@0.1.11(transitive)
- Removedassert-plus@0.1.5(transitive)
- Removedasync@0.9.2(transitive)
- Removedaws-sign2@0.5.0(transitive)
- Removedbl@0.9.5(transitive)
- Removedcaseless@0.9.0(transitive)
- Removedcldr-data-downloader@0.1.3(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedctype@0.5.3(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedforever-agent@0.5.2(transitive)
- Removedform-data@0.2.0(transitive)
- Removedhawk@2.3.1(transitive)
- Removedhttp-signature@0.10.1(transitive)
- Removedisarray@0.0.1(transitive)
- Removedmime-db@1.12.0(transitive)
- Removedmime-types@2.0.14(transitive)
- Removedoauth-sign@0.6.0(transitive)
- Removedqs@2.3.3(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedrequest@2.53.0(transitive)
- Removedtldts@6.1.69(transitive)
- Removedtldts-core@6.1.69(transitive)
- Removedtough-cookie@5.0.0(transitive)
Updatedcldr-data-downloader@0.2.x