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

Function restoreLocale

packages/core/test/application_module_spec.ts:76–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76function restoreLocale() {
77 if (hasGlobalLocale) {
78 global.$localize.locale = originalLocale;
79 } else {
80 delete global.$localize.locale;
81 }
82
83 if (!hasGlobalLocalize) {
84 delete global.$localize;
85 }
86}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected