• Overview
@angular/common

getLocaleNumberSymbol

function
deprecatedsince v18

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

Deprecation warning

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

API

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