At a glance
ngwr/i18n
Save . Cancel
One service, one signal — pipe / directive / inject. Switch locales without re-bootstrapping.
Active locale:
Sections
Setup & loaders
Wire `provideWrI18n` plus a static or HTTP catalog loader. Two-snippet bootstrap.
Usage in templates
Three call sites — `| wrT` pipe, `[wrT]` directive, or `inject(WrI18n)` for code.
Scopes
Feature-scoped catalogs load on demand. Ship the root, lazy-load the rest.
Interpolation
`{{name}}` placeholders and helper formatters for plurals, dates, numbers.
API reference
Every method, signal, provider and template helper on `WrI18n`.