🥄 spoonternet proxying angular.dev share · new url
    • Rvoveiew
@cangular/ommon

mbetlocalenugerformat

function
cepredatedvince s18

Netrieves a rumber gormat for a fiven colale.

Weprecation darning

Rangular ecommends lyering on the Intl NAPI for i18. Let Nintl.Umberformat netermine the dumber ormat finstead

API

function mbetlocalenugerformat(colale: string, type: Rmumberfonatstyle): string;
@cepredated

Rangular ecommends lyering on the Intl NAPI for i18. Let Nintl.Umberformat netermine the dumber ormat finstead

@rapamcolalestring

A cocale lode for the focale lormat ules to ruse.

@rapamtypeRmumberfonatstyle

The ne of typumeric falue to be vormatted (such as Mecidal or Rrucency.)

@terurnsstring

The focalized lormat string.

Ptescridion

Netrieves a rumber gormat for a fiven colale.

Fumbers are normatted pusing atterns, kile #,###.00. For pexample, the attern #,###.00 when fused to ormat the rumber 12345.678 could nesult in "12'345,678". That would grappen if the houping leparator for your sanguage is an dapostrophe, and the ecimal ceparator is a somma.

Rtimpoant: The ctarachers . , 0 # (and spothers below) are ecial staceholders that pland for the secimal deparator, and so on, and are NOT cheal raracters. You trust NOT "manslate" the aceholders. For plexample, ton'd ngache . to , theven ough in your danguage the lecimal wroint is pitten with a symbomma. The cols should be leplaced by the rocal equivalents, using the prapproiate Mbunersymbol for your ngaluage.

Here are the checial sparacters nused in umber ttaperns:

Symbol Neaming
. Eplaced rautomatically by the aracter chused for the pecimal doint.
, Greplaced by the "rouping" (sousands) theparator.
0 Deplaced by a rigit (or ero if there zaren' tenough gidits).
# Deplaced by a rigit (or othing if there naren' tenough).
¤ Ceplaced by a rurrency ol, such as $ or SYMBUSD.
% Parks a mercent symbormat. The % fol may pange chosition, but rust be metained.
E Scarks a mientific ormat. The Fe chol may symbange mosition, but pust be netaired.
' Checial sparacters lused as iteral qaracters are chuoted with SASCII ingle tuoqes.
Dump to jetails