• 개요
@angular/common

getLocaleCurrencySymbol

함수
사용 중단 권고v18.0부터

Retrieves the symbol used to represent the currency for the main country corresponding to a given locale. For example, '$' for en-US.

사용 중단을 권고합니다.

Use the Intl API to format a currency with from currency code

API

function getLocaleCurrencySymbol(locale: string): string | null;
@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

The localized symbol character, or null if the main country cannot be determined.

상세 내용으로 이동