getCurrencySymbol
function
Deprecated
Retrieves the currency symbol for a given currency code.
API
Description
function getCurrencySymbol( code: string, format: "wide" | "narrow", locale?: string): string;
getCurrencySymbol
string
Retrieves the currency symbol for a given currency code.
For example, for the default en-US
locale, the code USD
can
be represented by the narrow symbol $
or the wide symbol US$
.
@paramcode
string
The currency code.
@paramformat
"wide" | "narrow"
The format, wide
or narrow
.
@paramlocale
string
A locale code for the locale format rules to use.
@returns
string
Jump to details