Language Translation

We recognise that different people may want to interact with your bot in different languages and because of that we offer both static and dynamic language translation that can be triggered at any point in the conversation.

As you can see from this example, here we are getting responses in English first, but then after typing "I need help" in Welsh we then start to get responses from the bot in that language.

Providing Translations

The first option for this is around providing static translations for the bots responses. These are provided inside IntelAgent and you'd provide an alternate response for every bot response or training phrase.

The alternative is to use dynamic translations that will detect the language used in the users utterance and then translate any responses from the bot before replying back to the user. You can further restrict this to a specific subset of languages if you want to be cautious around how the bot responds.

Default Language

By default the language will be English however if you wish you can change the language for the widget and the bot using a parameter.

window.addEventListener('wbb_plugin_loaded', function(event) {
  new window.WBBChatPlugin({
    // Other settings here...
    
    // Language
    language: getQueryParam("lang") || "en",
    
    // more settings as required...
  });
});

In the example above we can use the optional URL parameter lang to determine what we pass into the widget as options. Alternatively the language parameter passed to the settings will be set to en.

The language codes that you can use can be found on the Google Documentation site.

Last updated