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

getLocaleCurrencyCodelink

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

Retrieves the default currency code for the given locale.

\n\n

See more...

\n
\n \n \n \n\n
\n \n\n getLocaleCurrencyCode(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

The code of the locale whose currency code we want.

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

string | null: The code of the default currency for the given locale.

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

Descriptionlink

\n

The default is defined as the first currency which is still in use.

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