Recipes
Worked examples for wiring ngx-runtime-i18n into a real application.
SSR with Express
Wire provideRuntimeI18nSsr() into an Express + Angular SSR server so the first response already carries the right catalog.
Route-scoped catalogs
Load a feature's translation catalog only when its route activates, using withI18nScope().
Preloading and caching
Warm catalogs ahead of time with the preload helpers, and pick a cacheMode for how long they stay in memory.
Type-safe catalogs
Walk through module augmentation end to end — declaring a schema, seeing t() get checked, and reading what DeepKeys and ExtractParams actually compute.
Angular Material adapter
Wire provideMaterialRuntimeI18n() into an app so the paginator, sort, and stepper Intl services switch language with everything else — plus what it takes to cover the datepicker too.
PrimeNG adapter
Keep PrimeNGConfig's translation object in sync with I18nService.lang(), and pick between a static map and a lazy resolver.
CI catalog validation
Wire the ngx-i18n CLI's extract and check commands into a pull request gate that fails the build when code and catalogs drift.
ng add schematic
See exactly what the ng-add schematic generates and patches in an existing Angular workspace, so running it holds no surprises.
Migrating from ngx-translate
A concept-mapping table and one worked component conversion for teams moving off @ngx-translate/core.