GitHub user jiderox added a comment to the discussion: 
/superset/language_pack/zh/

我在superset_config中配置了BABEL_DEFAULT_LOCALE = "zh"
才会有这个中文的请求接口,我的superset的前后端版本都是6.0;我嵌入sdk中是这样配置的
embedDashboard({
        id: this.dashboardId, // given by the Superset embedding UI
        supersetDomain: this.dashboardUrl,
        mountPoint: document.getElementById('my-superset-container'), // any 
html element that can contain an iframe
        fetchGuestToken: () => this.fetchEmbedGuestToken(), // guest_token
        dashboardUiConfig: {
          hideTitle: true,
          hideTab: false,
          hideChartControls: false,
          filters: {
            expanded: true,
            visible: true
          } // dashboard UI config: hideTitle, hideTab, hideChartControls 
(optional)
        },
        initialBootstrapData: {
          common: { locale: 'zh' }
        },
        debug: true
      })
      ,目前只有嵌入的页面中文显示有问题,我该怎么做

GitHub link: 
https://github.com/apache/superset/discussions/35864#discussioncomment-14799839

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to