Language Switching
Stringboot makes it easy to switch languages dynamically without reloading the page.Vanilla JS
React
Getting Available Languages
You can fetch the list of active languages configured in your dashboard.Multi-Tab Synchronization
The SDK automatically synchronizes language changes across browser tabs using the BroadcastChannel API. If a user changes the language in one tab, all other open tabs for your application will instantly update to match.Performance Optimization
Stringboot is designed for high performance with minimal impact on your application’s load time.Caching Strategy
- Memory Cache: Sub-millisecond access for frequently used strings.
- IndexedDB: Persistent offline storage. Strings are loaded from here on startup.
- Network: Only used for initial fetch or delta updates.
Monitoring Cache Stats
You can inspect the cache usage to debug performance issues.Parallel Loading
When fetching strings dynamically (outside of hooks), usePromise.all to fetch them in parallel.
A/B Testing Integration
Stringboot supports native A/B testing for string variations. You can pass ananalyticsHandler during initialization to track experiment exposure.
- Deterministically assign a variant (Control or Variant B) based on the user’s session.
- Return the appropriate string value.
- Trigger the
analyticsHandlercallback so you can log the exposure.