globalizejs / globalizejs/globalize

possible to get the name of a currency

Open
#605 13 comments 3 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

right now i'm doing this in order to get the pluralized name "US dollars":
Globalize.currencyFormatter('USD', {style:'name', minimumFractionDigits:0, maximumFractionDigits:0,})(2).replace('2','')

is there some simpler way?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.