formatjs / handlebars-intl

Handlebars helpers for internationalization.
http://formatjs.io/handlebars/
Other
265 stars 28 forks source link

fixing custom formats by string #29

Closed caridy closed 10 years ago

caridy commented 10 years ago

This PR fixes the option to pass a second argument as string to select a custom formatter:

{{intlNumber NUM "foo"}}
{{intlDate 1390518044403 "bar"}}

It also fixes the message format for something like this:

the cost {price, number, foo} will be ready by {deadline, date, bar}

where foo is a number formatter, and bar is a data formatter.

yahoocla commented 10 years ago

CLA is valid!

drewfish commented 10 years ago

+1

caridy commented 10 years ago

+v0.1.0