Skip to content

Allow specific currencies #1

@SlexAxton

Description

@SlexAxton

https://github.com/format-message/message-format-rb/blob/master/lib/message_format/interpreter.rb#L91

Currently, using a message like Your total is: {amount, number, currency} can only support USD (Since that's the default in Twitter's CLDR lib[0]).

I'm unsure of the best way to add this functionality (I'm no ruby pro), but it'd be quite helpful.

Until then, it's decently easy to just pass in a Twitter CLDR formatted currency as a string, but it'd be cool to do all in one spot!

Thanks!

[0] https://github.com/twitter/twitter-cldr-rb/blob/4054e3ee23c42716d14c38231c7b39169a3afad4/lib/twitter_cldr/formatters/numbers/currency_formatter.rb#L11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions