getLocaleCurrencyCode
function
deprecatedsince v4217
Retrieves the default currency code for the given locale.
Deprecation warning
@paramlocale
stringThe code of the locale whose currency code we want.
@returns
string | nullThe code of the default currency for the given locale.
Description
Retrieves the default currency code for the given locale.
The default is defined as the first currency which is still in use.
Jump to details