• 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;
@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

The character for the localized symbol.

Jump to details