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