Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Releases: formatjs/formatjs-extract-cldr-data

v6.0.0 — Update to CLDR 34

08 Jan 12:02
v6.0.0
b46c856
Compare
Choose a tag to compare

This release updates to use CLDR 34.

CLDR 34 release notes

v5.0.0 — Update to CLDR 33

13 Sep 13:09
v5.0.0
6bb4c04
Compare
Choose a tag to compare

This release updates to use CLDR 33.

CLDR 33 release notes

v4.1.0 — short relative formats

06 Oct 13:36
v4.1.0
Compare
Choose a tag to compare
  • add support for short relative formats (#15, @dtm5011)

v4.0.0 — Update to CLDR 31

18 Aug 13:36
Compare
Choose a tag to compare

This release updates to use CLDR 31.

CLDR 31 release notes

v3.0.0 — Update to CLDR 29

18 Mar 01:52
Compare
Choose a tag to compare

This release updates to use CLDR 29.

CLDR 29 release notes

v2.0.0 — Update to CLDR 28

24 Feb 20:42
Compare
Choose a tag to compare

This release updates to use CLDR 28.

The CLDR update process has been removed now that the CLDR JSON packages are on npm.

Fixed: #8, #9

v1.1.1 — Fixed Plural Functions for IE < 9

09 Mar 15:50
Compare
Choose a tag to compare

v1.1.0 — Properly Resolve Parent Locales

05 Mar 00:24
Compare
Choose a tag to compare

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

02 Mar 23:42
Compare
Choose a tag to compare

This if the initial public release of this package.