Appearance
Localization
The widget ships with English and Bosnian. Both are inlined in the bundle, so there is no extra network request on first paint.
Auto-detection
By default the widget reads navigator.language and falls back through navigator.languages.
| Browser language | Widget locale |
|---|---|
bs, hr, sr, me, sh | Bosnian (bs) |
| Anything else | English (en) |
Override
ts
window.InviaroSettings = {
key: 'wt_...',
origin: 'https://yourdomain.com',
locale: 'bs'
};What is localized
All visitor-facing UI:
- Header title and close button label.
- Composer placeholder, send button, ARIA labels.
- Greeting hero, pre-chat form labels, buttons.
- System chips and banner messages.
- Date and time picker labels.
- Footer credit and privacy link.
What is not localized:
- Brand-supplied copy (
brand.greeting,brand.subheading,brand.preChat.prompt). Pass localized text yourself. - Bot and operator message bodies. The widget renders them verbatim.
- Time formatting, which uses
Intl.DateTimeFormatwith the visitor's system locale.