admin管理员组

文章数量:1293315

I have implemented the Zoho SalesIQ chatbot on my website using a script in my HTML. However, I am facing an issue with translation when switching between Arabic and English.

When I switch to the Arabic page, the text inside the chatbot conversation does not change to Arabic, and similarly, when switching back to English, the conversation text does not update to English.

Interestingly, the placeholder text inside the chatbot updates correctly according to the selected language, but the actual conversation text remains unchanged.

Here is the script I am using:


<script type="text/javascript" id="zsiqchat">
  var $zoho = $zoho || {};
  $zoho.salesiq = $zoho.salesiq || {
    widgetcode: "siq<code>",
    values: {},
    ready: function() {}
  };
  var d = document;
  s = d.createElement("script");
  s.type = "text/javascript";
  s.id = "zsiqscript";
  s.defer = true;
  s.src = ";;
  t = d.getElementsByTagName("script")[0];
  t.parentNode.insertBefore(s, t);
</script>

I tried setting the language manually using:

$zoho.salesiq.language = 'ar';

Expected: The conversation text inside the chatbot should switch to Arabic when the language is set to Arabic and vice versa for English. Actual Result: Only the placeholder text updates, but the conversation text remains in the original language.

本文标签: javascriptZoho SalesIQ Chatbot Not Changing Conversation Text on Language SwitchStack Overflow