• 개요
@angular/common

getLocaleCurrencyName

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

Retrieves the name of the currency for the main country corresponding to a given locale. For example, 'US Dollar' for en-US.

사용 중단을 권고합니다.

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

API

function getLocaleCurrencyName(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 currency name, or null if the main country cannot be determined.

상세 내용으로 이동