New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing space between currency code and value in currency pipe #2 #33803
Comments
Firefox, which uses the same CLDR data internally for locale strings, formats it correctly. And so does Chrome:
|
It does appear that we should modify our logic for applying the currency symbol. See https://unicode.org/reports/tr35/tr35-numbers.html#Currencies. I don't fully understand what is written there but it implies to me that this is a confirmed bug. From what I read we need to be ale to apply rules generated from sections like : "currencyFormats-numberSystem-latn": {
"currencySpacing": {
"beforeCurrency": {
"currencyMatch": "[:^S:]",
"surroundingMatch": "[:digit:]",
"insertBetween": " "
},
"afterCurrency": {
"currencyMatch": "[:^S:]",
"surroundingMatch": "[:digit:]",
"insertBetween": " "
}
}, in numbers.json of the For reference the I think we could something with preparing the data into JS regular-expressions to avoid unwanted performance loss. |
One way to fix this would be to rely on the This is what is proposed in #49143 |
We can delegate to Intl the formating of decimals, percents and currencies instead of relying on the Locale data. This commit would also fix angular#33803.
We can delegate to Intl the formating of decimals, percents and currencies instead of relying on the Locale data. This commit would also fix angular#33803.
We can delegate to Intl the formating of decimals, percents and currencies instead of relying on the Locale data. This commit would also fix angular#33803.
We can delegate to Intl the formating of decimals, percents and currencies instead of relying on the Locale data. This commit would also fix angular#33803.
We can delegate to Intl the formating of decimals, percents and currencies instead of relying on the Locale data. This commit would also fix angular#33803.
We can delegate to Intl the formating of decimals, percents and currencies instead of relying on the Locale data. This commit would also fix angular#33803.
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs.
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs.
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs. ba51192 ba51192
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs. ba51192 ba51192
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs. ba51192 ba51192
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs. ba51192 ba51192
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs. ba51192 ba51192
fixes angular#33803, BREAKING CHANGE: `formatNumber`, `formatPercent`, `formatCurrencies`, `DecimalPipe`, `PercentPipe`, `CurrencyPipe` have slightly changed outputs. ba51192 ba51192
…nd currencies fixes angular#33803,
…nd currencies fixes angular#33803,
…nd currencies fixes angular#33803,
…nd currencies fixes angular#33803,
…nd currencies fixes angular#33803,
…nd currencies fixes angular#33803,
…nd currencies This commit adds an `Intl` implementation to format numbers, percents and currencies. The implementation is based on the `Intl` API and allows to drop the static imports for the locale date files. fixes angular#33803
🐞 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:
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:
The text was updated successfully, but these errors were encountered: