Translation namespace identifier, typically corresponding to a feature area. Used to organize translations by functional domain and prevent key conflicts.
"device-status"
"user-settings"
"maintenance-scheduler"
Current active locale for this translation model. Determines which language variant to load and display.
"en" - English
"es" - Spanish
"pt-BR" - Brazilian Portuguese
Default fallback locale when translations are missing in the current locale. Typically set to the primary application language.
"en"
Locale descriptors defining fallback chains and configuration for each locale. Maps locale codes to their fallback hierarchy and metadata.
Optional rootOptional base URL for translation file loading. Used with default file-based resolution strategy.
"/assets/locales"
"https://cdn.example.com/translations"
Optional resolverOptional custom path resolver for translation file loading. Overrides default path construction logic.
Target translation namespace
Target locale code
Full path to translation resource
Optional bundleOptional custom bundle resolver for advanced translation loading strategies. Enables loading from APIs, device storage, or custom sources.
Target translation namespace
Target locale code
Optional context: KosContextKOS context for accessing shared data
Promise resolving to translation data
Configuration options for Translation model instances.
This interface defines the complete configuration structure for individual translation namespace models, including locale settings, resolution strategies, and custom loading mechanisms. Translation models handle the actual key resolution and interpolation for specific functional areas within KOS applications.
Example: Basic Translation Configuration
Example: Custom Bundle Resolution
Example: Multi-Regional Configuration