Asper Header  1.0.14
The header injector extension
Loading...
Searching...
No Matches
MessageProvider Class Reference

Internationalization message provider with multi-language support and fallback mechanisms. More...

Collaboration diagram for MessageProvider:
Collaboration graph

Detailed Description

Internationalization message provider with multi-language support and fallback mechanisms.

Responsible for fetching localized messages based on the user's language preferences. Implements a robust fallback system: user locale -> English -> first available language. Supports dynamic message generation with parameter interpolation through function-based messages.

Features:

  • Automatic language detection from VS Code environment
  • Graceful fallback handling for missing translations
  • Dynamic parameter interpolation in messages
  • Type-safe message retrieval with overloaded methods
  • Extensible architecture for adding new languages
  • Missing message handling with debugging information

Definition at line 104 of file messageProvider.ts.


The documentation for this class was generated from the following file: