You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修改Watson Assistant退出确认弹窗的自定义德语文本

Watson Assistant 关闭确认模态框自定义德语语言包配置

你遇到的问题是因为没有使用对应确认模态框的正确语言包键名。以下是关闭/重置确认模态框各元素的正确键值,可直接添加到你的customLanguagePack中:

  • confirm_restart_title: 模态框标题
  • confirm_restart_message: 模态框提示内容
  • confirm_restart_cancel_button: 取消按钮文本
  • confirm_restart_confirm_button: 确认重置按钮文本

修改后的完整语言包代码示例:

const customLanguagePack = {
    "options_select": "Wählen Sie eine Option aus",
    "confirm_restart_title": "Chat neu starten?",
    "confirm_restart_message": "Möchten Sie den Chat wirklich neu starten? Alle bisherigen Nachrichten werden gelöscht.",
    "confirm_restart_cancel_button": "Abbrechen",
    "confirm_restart_confirm_button": "Neu starten"
};

将上述代码替换原有的customLanguagePack后,模态框的所有文本就会显示为你定义的德语内容。

内容的提问来源于stack exchange,提问作者L.Gashi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.04 13:15:29