问题
如何手动设置 Web Widget(经典)的语言?
回答
小组件语言默认根据客户的浏览器自动设置。要手动设置小组件的语言,请根据您帐户中的小组件参照相应说明进行操作。
提示:要确定您的 Zendesk 帐户使用的是哪个小组件,请参阅文章:我的 Zendesk 帐户使用的是哪个小组件?
如果您通过 Support 帐户使用 Web Widget(经典)
要自定义 Web Widget(经典),使其始终以特定语言显示,无论您客户的浏览器语言如何,请使用 setLocale 命令,如下例所示。
<script type="text/javascript">
zE('webWidget', 'setLocale', 'LANGUAGE_CODE');
</script>
有关更多信息,请参阅开发者文档中的 setLocale 命令。有关完整说明,请参阅文章:Web Widget(经典)的高级自定义。
注意:当没有帮助中心文章匹配小组件的区域设置时,小组件将首先尝试匹配帮助中心默认语言的搜索结果。例如,当小组件的语言设置为荷兰语,而帮助中心不包含任何荷兰语内容时。如果帮助中心的默认语言是英语,则小组件会尝试匹配英语结果。如果没有结果,搜索将扩展到没有英语翻译的文章,以匹配所有帮助中心语言中使用的关键字。
仅限 Chat 的 Web Widget(经典)帐户
要设置仅限 Chat 的 Web Widget(经典)的语言,您需要使用自定义代码。如需了解更多信息,请在我们的开发者门户中查看此指南:为仅限 Chat 的帐户更改小组件语言。
旧版 Chat 帐户
如果您使用的是旧版 Chat,并希望设置小组件语言,请参阅文章:(旧版 Chat)设置旧版 Chat 小组件的语言。
9 条评论
Dane
Unfortunately, only setLocale is available for the widget. The feature setLanguage was available only for Legacy Chat. But thank you for the feedback we'll definitely have a look into it.
0
Dale Gordon
Hi Dane. Thanks for getting back to me.
I can get it to setLocale after initialization. I was meaning setting in on load. So that it immediately starts in the correct language.
Another thing I would like feedback on is overriding when it is in mobile mode. I feel that would be a great addition! 🎉
Regards,
Dale
0
Dane
You can customize the widget so that it always appears in a specific language using the setLocale command. This command sets the language for only the widget and doesn't override your host page’s language.
0
Beto
¡Hola Mireille, gracias por contactarnos!
Veo que ya tiene un ticket abierto con nosotros, credo al mismo tiempo que este post. Nuestro equipo de Soporte se ha contactado con usted y está esperando su respuesta. Puede verla accediendo al correo a través del que nos contactó.
Saludos,
0
Mireille Molero Segrera Molero Segrera
COMPARTIR PANTALLA TENGO CUENTA ZENDESK
0
Dale Gordon
1263082335049
0
Dale Gordon
Hi! I need a way to set the locale of the web widget on launch, so that it loads with the correct locale from the beginning. At the moment it loads in English only to be changed after that. It would be very helpful if that could be set from initialization.
Also, please open another ticket to allow the manual setting of mobile mode. We have a use case where the user can select either desktop or tablet mode and we wish for the support widget to follow suit.
0
Shai Sy Dimayuga
Hi Francois S,
A ticket has been created on your behalf and someone from our Support Team will contact you back regarding this via email.
Cheers!
0
Francois Spinnael
How can we force the webwidget to look only in 1 language ?
Because this remark says that it looks into all the languages if I understand it correctly... But in zendesk guide we can't give different tags/labels for different languages...
Note: Setting the language via API does not extend to the Help Center search within the widget. The search matches the keywords used across all the Help Center languages. For example, the language of the widget is set to Dutch but the Helpcenter does not contain any Dutch content. The widget tries to match results in a different language supported, for example French, and serves French results instead.
What we want is forcing the WebWidget to look into the helpcenter language that we have choice. What is the solution for that? (Because it seems that zendesk is only doing it for some languages and that a huge blocking factor)
0
登录再写评论。