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

Function enableI18nHydrationRuntimeSupport

packages/core/src/hydration/api.ts:118–125  ·  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

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

Callers 1

withI18nSupportFunction · 0.85

Tested by

no test coverage detected