• Overview
@angular/common

getLocaleCurrencySymbol

function
deprecated

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

API

function getLocaleCurrencySymbol(locale: string): string | null;

getLocaleCurrencySymbol

string | null

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

@deprecated

Use the Intl API to format a currency with from currency code

@paramlocalestring

A locale code for the locale format rules to use.

@returnsstring | null
Jump to details