Overview of @c15t/translations
canary@c15t/translations provides type-safe internationalization (i18n) utilities specifically designed for consent management within the c15t ecosystem. It allows developers to implement multilingual support for cookie banners, consent dialogs, and various consent types with high type safety.
Key Features
- Type-safe interfaces: Ensures translation keys match the expected consent management structure.
- Modular imports: Import specific language packs (e.g., English) as needed.
- Flexible configuration: Supports both partial and complete translation configurations.
- Granular definitions: Includes specific translation types for cookie banners, consent dialogs, and consent types.
- Language management: Supports flexible language configuration with optional auto-language switching.