WebChat Language Options

By default, the Anywhere365 WebChat supports both the Dutch and English language. The used language is determined by reading the first two characters of window.navigator.language. When no translations are present for this language, English is used as a fallback.

 

Switching languages

The currently used language can we changed as follows:

Copy
Script
WebChat.changeLanguage(language);

Where language is a two-letter language code (e.g. “en” for English). A json file with this code as filename should be present in the translations folder. If no translations are found for the given language, English will be used as a fallback.