Current application-wide locale setting. Applied to all child translation models when they are created or updated.
"en" - English
"es" - Spanish
"pt-BR" - Brazilian Portuguese
Comprehensive locale and namespace descriptor defining the complete translation structure for the application.
Optional defaultOptional default namespace for application-wide common translations. When specified, provides easy access to shared UI elements and messages.
"common"
"shared"
"ui-elements"
Optional rootOptional base URL for all translation file loading. Applied as prefix to all translation resource paths.
"/assets/locales"
"https://cdn.example.com/app-translations"
"/tenant-specific/translations"
Optional descriptorOptional URL for loading translation descriptor dynamically. Enables runtime configuration of translation structure.
"/api/translations/descriptor"
"https://config.example.com/translation-manifest.json"
Optional resolverOptional custom resolver for translation file path construction. Overrides default path resolution logic for all namespaces.
Target translation namespace
Target locale code
Full path to translation resource
Configuration options for TranslationContainer model instances.
This interface defines the configuration structure for translation container models, which manage multiple translation namespaces and coordinate global locale switching. Containers serve as the central orchestration point for internationalization in KOS applications.
Example: Basic Container Configuration
Example: CDN-Based Translation Loading
Example: Development Environment Setup