formatjs / dust-intl

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

Using formatRelative with formatMessage #59

Open sigmunau opened 8 years ago

sigmunau commented 8 years ago

I'm trying to use dust-intl in my project and I find I have some strings like "Updated yesterday" and "Created two years ago". I figured this should be solved using formatMessage to get the relative time string at the proper location, but there does not seem to be a "relative" format and as far as I can tell dust does not allow using the output of one helper as parameter to another.