Skip to content

Improved Currency Support #27

Closed
Closed
@nbouvrette

Description

@nbouvrette

Is your feature request related to a problem? Please describe.
Currency and its format is already documented to some extent by Unicode but to my knowledge, MessageFormat support is not as simple as the date or number arguments.

Describe the solution you'd like
I would like to see easier to use currency support that is closer to date or number arguments (see example below).

Describe why your solution should shape the standard
Currency is a very common scenario and providing an out of the box, easy to use solution would bring more value and reasons to use the syntax.

Additional context or examples

Your total is {amount, currency, short}

It would expect to have either scenario as input:

  • Use default system/client locale currency
{amount: 10}

The output would be:

Your total is 10.00$
  • Specify the currency:
{amount: {
	value: 10,
	code: 'CAD'
}}

The output would be:

Your total is CAD $10.00

Also having an extensive choice of format for both numbers and the currency sign would be a must to give full flexibility. Maybe the format could also be overwritten in the input?

Metadata

Metadata

Assignees

No one assigned

    Labels

    functionsIssue pertains to the default function setrequirementsIssues related with MF requirements list

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions