MCPcopy Create free account
hub / github.com/angular/angular / getLocaleId

Function getLocaleId

packages/common/src/i18n/locale_data_api.ts:259–261  ·  view source on GitHub ↗
(locale: string)

Source from the content-addressed store, hash-verified

257 * This function serves no purpose when relying on the `Intl` API.
258 */
259export function getLocaleId(locale: string): string {
260 return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId];
261}
262
263/**
264 * Retrieves day period strings for the given locale.

Callers 1

getNamedFormatFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected