Languages
Answer language
Section titled “Answer language”The assistant answers in, in this order: the language the chat sends with each message (the page language), the lang in a signed-in customer’s token, language in the visitor context, or your first language in Settings. It can answer in any language the shopper uses, even if your pages are in another one.
The chat’s texts
Section titled “The chat’s texts”Built in for English, Turkish, German, French, Dutch and Spanish. The chat picks the language from data-locale, then your page’s <html lang>, then the browser, and follows <html lang> when it changes. For other languages the texts fall back to English (answers stay in the shopper’s language). Change any text per language in Appearance → Labels.
To switch at runtime: window.Helpvane.setLocale('tr').
Language changes during a chat
Section titled “Language changes during a chat”A conversation keeps the language it started in:
- When the page language changes (
setLocale,data-localeor<html lang>), the widget clears the chat. The visitor’s next message starts a new conversation in the new language. - On the server, a message whose language has another primary subtag than the open conversation’s (for example
trafterde) closes that conversation and starts a new one. Regional variants are the same language:en-GBafterencontinues the conversation. If either side has no language, nothing changes. - On page load, the widget does not resume an open conversation that was started in another language than the page; it starts fresh instead.
The earlier conversation stays in Conversations with the status closed.