Releases: formatjs/formatjs-extract-cldr-data
v6.0.0 — Update to CLDR 34
This release updates to use CLDR 34.
v5.0.0 — Update to CLDR 33
This release updates to use CLDR 33.
v4.1.0 — short relative formats
v4.0.0 — Update to CLDR 31
This release updates to use CLDR 31.
v3.0.0 — Update to CLDR 29
This release updates to use CLDR 29.
v2.0.0 — Update to CLDR 28
This release updates to use CLDR 28.
The CLDR update process has been removed now that the CLDR JSON packages are on npm.
v1.1.1 — Fixed Plural Functions for IE < 9
This patch releases upgrades to make-plural@2.1.3
which fixes eemeli/make-plural#5.
v1.1.0 — Properly Resolve Parent Locales
In this release parent locales are now properly resolved and exposed in the output data.
The CLDR uses an algorithm to resolve locale data, but there are exceptions. The changes in this release leverage the data for the exceptional cases to now properly resolve a locale's parent locale.
Locale entries with a parent will now contain a parentLocale
property. This can be used by code consuming the data this package outputs to accurately traverse the locale hierarchy. This is very useful since this package will de-duplicate data as much as possible.
Also, a change in this release now guarantees that all locales listed in the locales
option will have entries in the output data.
The following example shows how the locale hierarchy is used to return the unique data:
var extractData = require('formatjs-extract-cldr-data');
var data = extractData({
locales : ['en-US', 'en-GB'],
pluralRules: true
});
console.log(data); // =>
{ 'en-US': { locale: 'en-US', parentLocale: 'en' },
'en-GB': { locale: 'en-GB', parentLocale: 'en-001' },
'en-001': { locale: 'en-001', parentLocale: 'en' } },
en: { locale: 'en', pluralRuleFunction: [Function] }
See: #4 for more details.
v1.0.0 — Initial Public Release
This if the initial public release of this package.