getLocaleCurrencyName
function
deprecated
Retrieves the name of the currency for the main country corresponding
to a given locale. For example, 'US Dollar' for en-US.
Deprecation warning
@paramlocale
stringA locale code for the locale format rules to use.
@returns
string | nullThe currency name,
or null if the main country cannot be determined.
Jump to details