@rash2x/bridge-widget 0.1.12 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -99,10 +99,11 @@ function App() {
99
99
  }
100
100
  ```
101
101
 
102
- ### 2. With Event Handlers
102
+ ### 2. With Event Handlers and Language
103
103
 
104
104
  ```tsx
105
105
  <EvaaBridge
106
+ defaultLanguage="ru" // Set default language (en, ru)
106
107
  onSwapSuccess={(data) => {
107
108
  console.log('Swap completed:', data);
108
109
  }}
@@ -128,7 +129,9 @@ function App() {
128
129
  | Prop | Type | Description |
129
130
  |------|------|-------------|
130
131
  | `className` | `string` | Optional CSS class for custom styling |
131
- | `theme` | `'light' \| 'dark'` | Theme mode |
132
+ | `defaultLanguage` | `string` | Language for the widget UI (default: `'en'`). Supported: `'en'`, `'ru'` |
133
+ | `tonClient` | `TonClient` | Optional TON client instance |
134
+ | `tonApiKey` | `string` | Optional TON API key |
132
135
  | `onInitialized` | `() => void` | Callback when bridge is initialized |
133
136
  | `onSwapStart` | `(data: SwapStartData) => void` | Callback when swap starts |
134
137
  | `onSwapSuccess` | `(data: SwapSuccessData) => void` | Callback when swap succeeds |