• 개요
@angular/common

getLocaleId

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

Retrieves the locale ID from the currently loaded locale. The loaded locale could be, for example, a global one rather than a regional one.

사용 중단을 권고합니다.

Angular recommends relying on the Intl API for i18n. This function serves no purpose when relying on the Intl API.

API

function getLocaleId(locale: string): string;
@deprecated

Angular recommends relying on the Intl API for i18n. This function serves no purpose when relying on the Intl API.

@paramlocalestring

A locale code, such as fr-FR.

@returnsstring

The locale code. For example, fr.

상세 내용으로 이동