v1.1.0 — Updated Locale Data
This feature release has updated locale data to fix zh-Hant
plus adds support for new locales, adds select-ordinal argument support to messages, and allows a "now" date to be specified in {{formatRelative}}
.
Updated Locale Data
This release has vastly improved 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
Added selectordinal
Support for Messages
This release adds support for selectordinal
arguments in messages, which are just like plural
arguments, expect the ordinal pluralization rules are used; e.g., to display which birthday your about to have:
It's my {year, selectordinal,
one {#st}
two {#nd}
few {#rd}
other{#th}
} birthday!
Added now
Option to {{formatRelative}}
Helper
Added 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.
Checkout the full set of changes since the last release for more details.