Skip to content

Localization

The widget ships English (en), Spanish (es), French (fr), and German (de) UI strings.

  1. Explicit locale option, if set
  2. <html lang> attribute of the host page
  3. navigator.language
  4. Fallback: English

Region subtags are normalized (fr-CAfr); unknown languages fall back to English.

window.ClaudiusConfig = {
apiUrl: "...",
locale: "de", // force German regardless of page/browser language
};

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?",
},
};
GroupKeys
Windowtitle, subtitle, welcomeMessage, closeChat, chatMessages, typingIndicator
Inputplaceholder, sendMessage, typeYourMessage
Toggle / bubbleopenChat, dismissGreeting
ErrorserrorGeneric, errorConnection, errorTimeout, errorRateLimitMinute, errorRateLimitHour, errorRetry
VoicevoiceInput, voiceInputHold, voiceListening, voicePermissionDenied, voiceNoSpeech, voiceNoMicrophone, voiceUnavailable, readAloud, pauseReading, resumeReading, stopReading
Conversation exportmoreOptions, copyAsMarkdown, downloadAsMarkdown, downloadAsJson, copiedToClipboard, copyFailed, transcriptTitle, transcriptExported, transcriptUser, transcriptAssistant, transcriptAttachments, transcriptSources

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.