Configuration Options
Setting Up Multi-Language Support
1. Set Default Language:Language File Format
Language files are JSON objects with translated strings:Currency Configuration
You can configure the display currency for your application by passing asessionConfig object to the init() method. Both locale and currency are optional:
EUR- EuroUSD- US DollarCNY- Chinese YuanKRW- South Korean WonTRY- Turkish Lira
Updating Session Configuration
You can update the locale or currency after initialization using theupdateSessionConfig() method:
AirSessionConfig object with both locale and currency values.
How Language Selection Works
- Default Language: Your
defaultLanguagesetting determines the interface language - Language File: The system loads the language file from the provided URL
- English Fallback: If a translation key is missing, it falls back to English
- No Language Switching: Currently, the language is set once during initialization and cannot be detected by the browser or changed by the user
- Session Configuration: You can set the locale and currency programmatically via
sessionConfigwhen callinginit(), or update them later usingupdateSessionConfig(). Bothlocaleandcurrencyare optional withinsessionConfig