• Overview
@angular/common

getLocaleCurrencyName

function
Deprecated

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

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

getLocaleCurrencyName

string | null

Retrieves the name of the currency for the main country corresponding to a given locale. For example, 'US Dollar' 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