globalizejs / globalizejs/globalize
Currencies: Support optional grouping, decimal data, and pattern elements
Open
- Dominant language
- JavaScript
- Stars
- 4.8k
- Forks
- 585
- PR merge metrics
- No merged PRs in 30d
Description
Ref: similar issue than reported in https://github.com/tc39/ecma402/issues/241
```js
Globalize("pt-PT").formatCurrency(1, "PTE");
> "1,00 "
```
[UTS#35](http://www.unicode.org/reports/tr35/tr35-numbers.html#Currencies) says:
> Currencies can also contain optional grouping, decimal data, and pattern elements. This data is inherited from the in the same locale data (if not present in the chain up to root), so only the differing data will be present. See the main document Section 4.1 Multiple Inheritance.
Example: https://github.com/unicode-cldr/cldr-numbers-full/blob/master/main/pt-PT/currencies.json#L1303-L1310
Contributor guide
Assessment
This issue has not been assessed yet.