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

Function setLocaleId

packages/core/src/render3/i18n/i18n_locale_id.ts:26–31  ·  view source on GitHub ↗
(localeId: string)

Source from the content-addressed store, hash-verified

24 * @param localeId
25 */
26export function setLocaleId(localeId: string) {
27 ngDevMode && assertDefined(localeId, `Expected localeId to be defined`);
28 if (typeof localeId === 'string') {
29 LOCALE_ID = localeId.toLowerCase().replace(/_/g, '-');
30 }
31}
32
33/**
34 * Gets the locale id that will be used for translations and ICU expressions.

Callers 4

bootstrapFunction · 0.90
finalizeMethod · 0.85
restoreOriginalStateMethod · 0.85

Calls 2

assertDefinedFunction · 0.90
replaceMethod · 0.45

Tested by

no test coverage detected