@albi_scando/as-language-lib
v1.0.1
Published
A library for managing languages in Angular applications, providing services and utilities to handle localization and internationalization.
Downloads
177
Readme
as-language-lib
Description
A lightweight, fully typed Angular and TypeScript library for handling application languages and translations. as-language-lib helps you define allowed locales, detect and switch the active language, load translations from one or more sources, and consume translated values through both services and a template pipe.
Key Features
- Language Management: Set and validate allowed locales, then switch language at runtime
- Automatic Fallback Strategy: Resolves language from user preferences, browser locale, and default values
- Multi-Source Translations: Register multiple translation sources and merge results
- Reactive by Design: Uses RxJS and Angular Signals to keep UI translation state in sync
- Template-Friendly: Translate keys in components via a dedicated Angular
TranslatePipe - TypeScript First: Strong typing across services, models, and language flows
