Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
excludeRelated Articles

Orbita provides multilanguage support allowing you to change the labels in the chatbot.

Refer How to configure a multi-lingual bot to change the voice output of the chatbot.

Experience Designer

You can change all the labels in the Chatbot to the desired language using the below steps.

...

Code Block
var languages = msg.req.headers["accept-language"].split(';');
var languages = languages.map(function(item){
    var temp = item.split(',');
    if(temp[0].indexOf('=') ===-1) {
        return temp[0];
    }
    return temp[temp.length-1];
});
var langPack = global.get('orbitalang-pack') || {};
node.warn(languages)
var selectedLang = null;
for(var i=0; i<languages.length; i++) {
    if(langPack[languages[i]]) {
        node.warn(languages[i]);
        selectedLang = langPack[languages[i]];
        break;
    }
}
if(!selectedLang) {
    selectedLang = langPack['en-US']
}
if(!msg.bot) {
    msg.bot = {};
}
msg.bot.selectedLang = selectedLang;
return msg;

Browser Settings

You have to Add and/or Arrange the languages in your browser settings for the above settings language support to take effect in your browser. The language you are trying to add should be at the top of the language list of the browser.

Attachments
previewfalse
uploadfalse
oldfalse
patterns.*json

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel = "experience-manager"