This fixes the locale data by upgrading all the intl-* libs to latest, adds support for selectordinal arguments in messages, and the now option to {@formatRelative}. It also improves source maps of minified files and adds Browserify tests.
Fixed Locale Data
This vastly improves the locale data in the following ways:
Added locale data for all leaf locales which differ from their root locale's data; e.g. "zh-Hant-TW" is not the same as "zh".
Properly de-duplicate data for all CLDR locales by correctly traversing a locale's hierarchy of ancestor locales.
Added data for the following languages:
aa, agq, bas, bh, ckb, dav, dje, dsb, dua, dv, dyo, ebu, ewo, guw, guz, hsb, ia, in, iu, iw, jbo, ji, jv, jw, kaj, kam, kcg, khq, ki, kln, kok, ksf, ku, lb, lu, luo, luy, mer, mfe, mgh, mo, mua, nah, nmg, no, nqo, nus, ny, pap, prg, qu, rn, rw, sbp, sh, sma, smi, smj, smn, sms, swc, syr, tk, tl, twq, vai, wa, wo, yav, yi, zgh
Upgraded intl-* Dependencies
The following low-level FormatJS packages have also been upgraded which
provide and take advantaged of the improved CLDR locale data:
grunt-extract-cldr-data@2.1.1
intl-messageformat@1.1.0
intl-relativeformat@1.1.0
Added selectordinal Support for Messages
intl-messageformat@1.1.0 adds support for selectordinal arguments in messages; e.g.:
This is my {year, selectordinal,
one {#st}
two {#nd}
few {#rd}
other{#th}
} birthday.
Added now Option to {@formatRelative} Helper
intl-relativeformat@1.1.0 adds support for specifying the "now" value from which relative time is computed. This change adds a new now hash option to the {@formatRelative} helper which will pass along that value to IntlRelativeFormat#format() method.
This fixes the locale data by upgrading all the
intl-*
libs to latest, adds support forselectordinal
arguments in messages, and thenow
option to{@formatRelative}
. It also improves source maps of minified files and adds Browserify tests.Fixed Locale Data
This vastly improves the locale data in the following ways:
Upgraded
intl-*
DependenciesThe following low-level FormatJS packages have also been upgraded which provide and take advantaged of the improved CLDR locale data:
grunt-extract-cldr-data@2.1.1
intl-messageformat@1.1.0
intl-relativeformat@1.1.0
Added
selectordinal
Support for Messagesintl-messageformat@1.1.0
adds support forselectordinal
arguments in messages; e.g.:Added
now
Option to{@formatRelative}
Helperintl-relativeformat@1.1.0
adds support for specifying the "now" value from which relative time is computed. This change adds a newnow
hash option to the{@formatRelative}
helper which will pass along that value toIntlRelativeFormat#format()
method.