Skip to main content

Configuration Options

Setting Up Multi-Language Support

1. Set Default Language:
2. Provide Language File URL: We will upload your translated language file(s) to our server and provide the URL for configuration:

Language File Format

Language files are JSON objects with translated strings:

Currency Configuration

You can configure the display currency for your application by passing a sessionConfig object to the init() method. Both locale and currency are optional:
Supported Currency Codes:
  • EUR - Euro
  • USD - US Dollar
  • CNY - Chinese Yuan
  • KRW - South Korean Won
  • TRY - Turkish Lira
The currency setting affects how monetary values are displayed throughout the AIR Kit interface, including wallet balances, transaction amounts, and on-ramp/swap interfaces.

Updating Session Configuration

You can update the locale or currency after initialization using the updateSessionConfig() method:
The method returns the complete AirSessionConfig object with both locale and currency values.

How Language Selection Works

  1. Default Language: Your defaultLanguage setting determines the interface language
  2. Language File: The system loads the language file from the provided URL
  3. English Fallback: If a translation key is missing, it falls back to English
  4. No Language Switching: Currently, the language is set once during initialization and cannot be detected by the browser or changed by the user
  5. Session Configuration: You can set the locale and currency programmatically via sessionConfig when calling init(), or update them later using updateSessionConfig(). Both locale and currency are optional within sessionConfig