Recent searches


No recent searches

[URGENT] Issue with translating the bot workflow, both through browser translation and API usage.



Posted Jan 17, 2024

When applied in the IDE snippet, setting the locale to German ('de') ensures proper translation of the bot workflow into German.

zE('messenger:set', 'locale', 'de');

However, when applying the following snippet in the IDE, it doesn't translate the bot workflow content, it only translates the conversation header and the "built with Zendesk" logo at the bottom of the widget.

var UserLocale = $("#" + hdnAppCuesUserLanguage).val(); UserLocale = 'de'; // Set the locale to German ('de') zE('messenger:set', 'locale', UserLocale);

or this into the snippet: var UserLocale = $("#" + hdnAppCuesUserLanguage).val() || 'de'; // Set the locale to the chosen language or default to German ('de') zE('messenger:set', 'locale', UserLocale);

I would like the bot workflow to automatically translate based on the user's language preference on our website, not relying on the user's browser language. In some cases, users may have their browser language set to English, but their preferred language is different. How can I configure the bot workflow to adapt to the user's profile language rather than the browser-specific language?

I've already explored the articles in the help center before reaching out, so please avoid redirecting me to those resources. Unfortunately, I couldn't find a solution there, and it seems other users have encountered similar challenges.

Additionally, there are browser translation issues. Despite setting English as the default, when switching to German, the workflow translation is inconsistent, sometimes reverting to English.

Could someone provide assistance on this matter urgently? We need to expedite the resolution as the functionality is critical for us.

Much appreciated


0

4

4 comments

By bot, do you mean standard responses configured in the messaging channel or the bot built with flow builder? Do you only plan to use a single DE locale or multiple locales?

0


Hey Anton, 

Thank you for the quick response. Yes, the translation issue persists for both standard responses in the messaging channel and the bot built with the flow builder. It currently translates only the conversation header, the 'built with Zendesk' logo, and the watermark text in the message box.

I am implementing multiple locales, with each locale being set based on the user's preferred language in their profile settings on our website.

I'm also facing challenges with the browser translation, as it's not dynamic. Users need to manually switch between (for instance) German and English  for it to function properly.

0


My findings are: 
1) Currently,  the bot is not truly multilingual, but you can enable automatic translation for a subset of languages, including EN,DE
https://support.zendesk.com/hc/en-us/articles/4408842754202-Managing-languages-in-a-conversation-bot#topic_ddp_kcj_bpb
2) Standard responses (if you do not enable a bot) do not support dynamic content, so you can make it only in a single language. There was a conversation on this topic recently
https://support.zendesk.com/hc/en-us/articles/4500737327258

0


Hey Anton, thanks, I've already enabled auto-translation for all supported languages. When applying the following code in the IDE, it seamlessly translates both standard responses and bot workflows for all supported languages:

<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=1234456abcde"></script>
<script>
    // Set Locale as German
    zE('messenger:set', 'locale', 'de');
</script>

1


Please sign in to leave a comment.

Didn't find what you're looking for?

New post