{ "id": "api/common/getLocaleCurrencySymbol", "title": "getLocaleCurrencySymbol", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

getLocaleCurrencySymbollink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Retrieves the symbol used to represent the currency for the main country\ncorresponding to a given locale. For example, '$' for en-US.

\n\n \n
\n \n \n \n\n
\n \n\n getLocaleCurrencySymbol(locale: string): string | null\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n locale\n string\n

A locale code for the locale format rules to use.

\n\n
\n\n \n
Returns
\n

string | null: The localized symbol character,\nor null if the main country cannot be determined.

\n\n \n\n\n \n\n \n
\n\n\n \n
\n

See alsolink

\n \n
\n\n\n \n\n\n\n \n\n\n
\n
\n\n\n" }