formatjs / dust-intl

Dust helpers for internationalization.
http://formatjs.io/dust/
Other
48 stars 11 forks source link

Fix locale data and upgrade intl-* libs #52

Closed ericf closed 9 years ago

ericf commented 9 years ago

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:

The following low-level FormatJS packages have also been upgraded which provide and take advantaged of the improved CLDR locale data:

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.

yahoocla commented 9 years ago

CLA is valid!

caridy commented 9 years ago

:8ball: