Open
Description
We currently rely on the pattern to give us the complete layout of the final number.
But CLDR has additional rules that say when a space should be inserted around a currency symbol/code, which look like this:
"currencySpacing": {
"beforeCurrency": {
"currencyMatch": "[:^S:]",
"surroundingMatch": "[:digit:]",
"insertBetween": " "
},
"afterCurrency": {
"currencyMatch": "[:^S:]",
"surroundingMatch": "[:digit:]",
"insertBetween": " "
}
},
Yes, that's quite confusing, which is why I missed it previously.
Looks like this is a good opportunity to check how our formatting logic compares with the ICU4J one.
Relevant links:
angular/angular#20708
andyearnshaw/Intl.js#221
Metadata
Metadata
Assignees
Labels
No labels