• Overview
@angular/common

getLocaleNumberSymbol

function
Deprecated

Retrieves a localized number symbol that can be used to replace placeholders in number formats.

  
    function getLocaleNumberSymbol(  locale: string,  symbol: NumberSymbol): string;
  
  

getLocaleNumberSymbol

string

Retrieves a localized number symbol that can be used to replace placeholders in number formats.

@deprecated

Angular recommends relying on the Intl API for i18n. Use Intl.NumberFormat to format numbers instead.

@paramlocalestring

The locale code.

@paramsymbolNumberSymbol

The symbol to localize. Must be one of NumberSymbol.

@returnsstring
Jump to details