Developer: How to add multilingual chat

Signup for a free 18-days trial today

Developer: How to add multilingual chat

In Knowledge base >

You are able to define a specific language in a tag, thus adding support on multilingual websites.

In your javascript tag, add before </script> the variable cs_language (required) with a valid language code. See the example below:

<script type="text/javascript">
	(function(d,c){
		var scrs=d.getElementsByTagName("script");var scr=scrs[scrs.length-1];var e=d.createElement("script");e.async=true;e.src=("https:"==document.location.protocol?"https://":"http://")+"chat.csupporthq.com/external/chat-float-inline.js?"+scrs.length;
		if(typeof c=="function")if(e.addEventListener)e.addEventListener("load",c,false);else if(e.readyState)e.onreadystatechange=function(){if(this.readyState=="loaded")c();};
		scr.parentNode.insertBefore(e,scr);
	})(document,null);
	// Below is the language code for Danish
	var cs_language="da";
</script>