Skip to content

should provide parameter for currency type and language #2

@ericblade

Description

@ericblade
Intl.NumberFormat(navigator.languages[0], {style: 'currency', currency: 'USD'}).format('1234.56');

adding a language and currency field would allow for us to use the built-in Intl to format instead.

If not provided, can still use navigator.languages[0] (there are packages out there that also derive from navigator.language, and older specs, but i don't think we need to really go out of our way to support old browsers, do we?) and assume USD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions