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

Function enableI18nHydrationRuntimeSupport

packages/core/src/hydration/api.ts:117–124  ·  view source on GitHub ↗

* Brings the necessary i18n hydration code in tree-shakable manner. * Similar to `enableHydrationRuntimeSupport`, the code is only * present when `withI18nSupport` is invoked.

()

Source from the content-addressed store, hash-verified

115 * present when `withI18nSupport` is invoked.
116 */
117function enableI18nHydrationRuntimeSupport() {
118 if (!isI18nHydrationRuntimeSupportEnabled) {
119 isI18nHydrationRuntimeSupportEnabled = true;
120 enableLocateOrCreateI18nNodeImpl();
121 enablePrepareI18nBlockForHydrationImpl();
122 enableClaimDehydratedIcuCaseImpl();
123 }
124}
125
126/**
127 * Outputs a message with hydration stats into a console.

Callers 1

withI18nSupportFunction · 0.85

Tested by

no test coverage detected