A type-safe, lazy-loaded internationalization library for Angular, built on signals and compatible with zoneless applications.
ngx-signal-i18n is an internationalization (i18n) solution for Angular that provides full type safety and lazy loading of translation files. It leverages Angular's signals for efficient reactivity and is designed to work seamlessly with zoneless Angular applications, offering a modern and performant approach to managing translations.
Type Safety — Enforces type safety for all translations based on a default language structure.
Lazy Loading — Loads translation files on demand to reduce initial bundle size.
Signal-Based Reactivity — Uses Angular signals for efficient change detection and reactive updates.
Zoneless Compatibility — Fully compatible with zoneless Angular applications.
Parameterized Translations — Supports dynamic content through translation functions with parameters.
Template Interpolation Pipe — Provides a pipe for easy interpolation of translations directly in templates.
Masking Utilities — Offers pick and omit utility types for working with complex translation structures.
Testing Proxy — Includes a proxy utility to simplify mocking translations during unit tests.
Lightweight — Minimal bundle size of approximately 1.5kB with few dependencies.
The library emphasizes a no-magic, TypeScript-first approach, providing a straightforward and type-safe API for internationalization without hidden complexities.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.