You can force the bot language (if your bot is configured with that language) using the following widget code (which goes into the HTML of your web page):


<script
    type="text/javascript"
    async
    defer
    src="https://quriobot.com/qb/widget/3MY12wr8gmd8AROG/NvRW9mA761E3BgZ4?lang=de-de">
</script>


Note: you can do the same thing when iFraming the Quriobot or on the Quriobot Landing Page by simply adding ?lang=de-de at the end of the URL


Did you notice the lang parameter which you can set manually? In this example it is the German language. 

List of supported locales (languages) can be found here.


In some cases or frameworks, the target language is not known at the time of the html rendering but later after the page is loaded.

For example, bablic website translation service allows to get the taget language using its JS API like this:


bablic.targetLocale.iso.toLocaleLowerCase()


To make quriobot in sync with the target language of the website, you can embed the quriobot code dynamically and forcing the language, by putting such tag before closing </body>:


<script type="text/javascript">
document.addEventListener('bablicdone',function() {
var QBa;
QBa=document.createElement('script');
QBa.type="text/javascript";
QBa.async = 'async';
QBa.defer = 'defer';
QBa.src="https://quriobot.com/qb/widget/3MY12wr8gmd8AROG/NvRW9mA761E3BgZ4?lang=" + bablic.targetLocale.iso.toLocaleLowerCase();
document.head.appendChild(QBa);
})
</script>






Need more help or looking for inspiration? Join the Quriobot community!

Quriobot
Friendly & Fun
Interact & ConvertQuriobot landing pageQuriobot landing pageQuriobot Landing Page