Skip to content

Support for accounting format in currency pipe #24917

Closed
@ghost

Description

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

Angular uses the currency formatting extracted from CLDR to format currencies with the currency pipe.
However CLDR also contains formatting rules for currencies used in an accounting context.
see currency-accounting: http://cldr.unicode.org/translation/number-patterns

For example the english accounting standard is to use parentheses to display negative numbers.
This is currently not supported by the currency pipe and as far as i can tell this information is not extracted from CLDR.

Expected behavior

Currency pipe has an option to switch to accounting format (default is non-accounting, as it is now).

What is the motivation / use case for changing the behavior?

Enterprise application which displays currency values in grids.

Environment


Angular version: 6.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: i18nIssues related to localization and internationalizationfeatureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsfeature: votes requiredFeature request which is currently still in the voting phase

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions