8000 Missing space between currency code and value in currency pipe #2 · Issue #33803 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content
Missing space between currency code and value in currency pipe #2 #33803
@musterknabe

Description

@musterknabe

🐞 bug report

Affected Package

The issue is caused by package @angular/common

Is this a regression?

No

Description

The original bug was closed by a bot before it was solved (see #20708).

@ocombe wrote:

Since CLDR doesn't contain formats for finance currencies, I don't think that we can fix that. They have formats for currency accounting, but it doesn't seem to be that.
The description for the currency pattern that we use is:

Used for currency values. A currency symbol (¤) is will be replaced by the appropriate currency symbol for whatever currency is being formatted. The choice of whether to use the international currency symbols (USD, EUR, JAY, RUB,…) or localized symbols ($, €, ¥, руб.,…) is up to the application program that uses CLDR.

Which seem to point to the fact that we are indeed using the correct pattern.

You are using the correct pattern, but according to the CLDR website (http://cldr.unicode.org/translation/number-patterns) there should be a space between currency code and numbers:

¤ | This will be replaced by a currency symbol, such as $ or USD. Note: by default a space is automatically added between letters in a currency symbol and adjacent numbers. So you don't need to add a space between them if your language writes "$12" but "USD 12".

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: commonIssues related to APIs in the @angular/common packagearea: i18nIssues related to localization and internationalization

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0