Skip to content

Using formatRelative with formatMessage #59

@sigmunau

Description

@sigmunau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions