()
| 314 | * @see [I18N](guide/hydration#i18n) |
| 315 | */ |
| 316 | export function withI18nSupport(): Provider[] { |
| 317 | return [ |
| 318 | { |
| 319 | provide: IS_I18N_HYDRATION_ENABLED, |
| 320 | useFactory: () => inject(IS_HYDRATION_DOM_REUSE_ENABLED), |
| 321 | }, |
| 322 | { |
| 323 | provide: ENVIRONMENT_INITIALIZER, |
| 324 | useValue: () => { |
| 325 | if (inject(IS_HYDRATION_DOM_REUSE_ENABLED)) { |
| 326 | enableI18nHydrationRuntimeSupport(); |
| 327 | setIsI18nHydrationSupportEnabled(true); |
| 328 | performanceMarkFeature('NgI18nHydration'); |
| 329 | } |
| 330 | }, |
| 331 | multi: true, |
| 332 | }, |
| 333 | ]; |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * Returns a set of providers required to setup support for incremental hydration. |
nothing calls this directly
no test coverage detected