Internationalization (i18n)
The Fanfare SDK includes built-in internationalization support for all UI text.Supported Locales
Setting the Locale
Provider Level
Web Components
Custom Translations
Override default translations with custom text:Translation Keys
Queue Keys
| Key | Default (English) |
|---|---|
queue.enter | Enter Queue |
queue.leave | Leave Queue |
queue.position | Position: |
queue.estimatedWait | Estimated wait: |
queue.admitted | You have been admitted! |
queue.expired | Your admission has expired |
Draw Keys
| Key | Default (English) |
|---|---|
draw.enter | Enter Draw |
draw.withdraw | Withdraw Entry |
draw.entered | You are entered! |
draw.countdown | Draw in |
draw.won | Congratulations! You won! |
draw.lost | Better luck next time |
Auction Keys
| Key | Default (English) |
|---|---|
auction.enter | Join Auction |
auction.placeBid | Place Bid |
auction.currentBid | Current bid |
auction.minBid | Minimum bid |
auction.winning | You are winning! |
auction.outbid | You have been outbid |
auction.won | Auction won! |
auction.lost | Auction ended |
auction.timeRemaining | Time remaining |
General Keys
| Key | Default (English) |
|---|---|
common.loading | Loading… |
common.error | An error occurred |
common.retry | Try Again |
common.continue | Continue |
common.cancel | Cancel |
admitted.cta | Continue to Checkout |
Using Translations in Components
useTranslations Hook
Interpolation
Translations support variable interpolation:Dynamic Locale Switching
RTL Support
The SDK automatically handles right-to-left languages:Experience-Level Translations
Translations can be configured per-experience in the Fanfare dashboard. These are automatically loaded when usinguseExperienceJourney: