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

getLocaleCurrencyNamelink

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

Retrieves the name of the currency for the main country corresponding\nto a given locale. For example, 'US Dollar' for en-US.

\n\n \n
\n \n \n \n\n
\n \n\n getLocaleCurrencyName(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 currency name,\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" }