* Brings the necessary i18n hydration code in tree-shakable manner. * Similar to `enableHydrationRuntimeSupport`, the code is only * present when `withI18nSupport` is invoked.
()
| 115 | * present when `withI18nSupport` is invoked. |
| 116 | */ |
| 117 | function 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. |
no test coverage detected