You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/native-federation/README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Native Federation is a "browser-native" implementation of the successful mental
14
14
- ✅ Easy to configure: We use the same API and Schematics as for our Module Federation plugin
15
15
- ✅ Blazing Fast: The reference implementation not only uses the fast esbuild; it also caches already built shared dependencies.
16
16
- ✅ Supports Angular SSR and Incremental Hydration (since 18@latest)
17
+
- ✅ Supports Angular I18N (since 19.0.13)
17
18
18
19
## Prerequisite
19
20
@@ -334,6 +335,38 @@ ng serve shell -o
334
335
335
336
Now, by clicking at the 2nd menu item, you can load the remote directly into the host.
336
337
338
+
## Advanced Use Cases
339
+
340
+
### SSR and Hydration
341
+
342
+
We support Angular's SSR and (Incremental) Hydration. Please find [more information here](https://www.angulararchitects.io/blog/ssr-and-hydration-with-native-federation-for-angular/).
343
+
344
+
### Native Federation and Module Federation
345
+
346
+
We support combining Native Federation with Module Federation. Please find [more information here](https://www.angulararchitects.io/blog/combining-native-federation-and-module-federation/).
347
+
348
+
### Angular I18N
349
+
350
+
Since version 19.0.13, Native Federation for Angular supports Angular I18N. Here are some things to keep in mind:
351
+
352
+
- Make sure, you also add I18N support to your shell (e.g., `ng add @angular/localize --project shell`)
353
+
- Configure I18N in your `angular.json`. Don’t use command line parameters (as the Native Federation Builder does not forward them to the ApplicationBuilder by design)
354
+
- In production, make sure your `federation.manifest.json` points to the right language versions of your remotes
355
+
356
+
### Angular Localization
357
+
358
+
To just build the localization files you need for federation, you can use the `shareAngularLocales` introduced with version 19.0.14:
0 commit comments