Localization
This content is for v1.x. Switch to the latest version for up-to-date documentation.
The widget ships English (en), Spanish (es), French (fr), and German
(de) UI strings.
Locale resolution
Section titled “Locale resolution”- Explicit
localeoption, if set <html lang>attribute of the host pagenavigator.language- Fallback: English
Region subtags are normalized (fr-CA → fr); unknown languages fall back to
English.
window.ClaudiusConfig = { apiUrl: "...", locale: "de", // force German regardless of page/browser language};Overriding individual strings
Section titled “Overriding individual strings”translations merges over the resolved locale, so you can override just the
strings you care about:
window.ClaudiusConfig = { apiUrl: "...", locale: "es", translations: { title: "Soporte PMDS", welcomeMessage: "¡Hola! ¿En qué puedo ayudarte hoy?", },};Available keys
Section titled “Available keys”| Group | Keys |
|---|---|
| Window | title, subtitle, welcomeMessage, closeChat, chatMessages, typingIndicator |
| Input | placeholder, sendMessage, typeYourMessage |
| Toggle / bubble | openChat, dismissGreeting |
| Errors | errorGeneric, errorConnection, errorTimeout, errorRateLimitMinute, errorRateLimitHour, errorRetry |
Note these localize the widget UI only. The AI’s reply language follows the conversation and your system prompt — instruct the bot there if you want replies pinned to a language.