plotly / react-chart-editor

Customizable React-based editor panel for Plotly charts
https://plotly.github.io/react-chart-editor/
MIT License
496 stars 100 forks source link

Incomplete translation #1182

Open swordLi opened 1 month ago

swordLi commented 1 month ago

The following method can be used to translate, but the X-axis, Y-axis, and default chart name in the chart cannot be translated or modified. How can I solve this problem?

<PlotlyEditor
          data={this.state.data}
          layout={this.state.layout}
          config={config}
          frames={this.state.frames}
          dataSources={dataSources}
          dataSourceOptions={dataSourceOptions}
          plotly={plotly}
          locale={"zh"}
          dictionaries={{"zh":locale}} //Use this method
          onUpdate={(data, layout, frames) => this.setState({data, layout, frames})}
          useResizeHandler
          debug
          advancedTraceTypeSelector
        />

Snipaste_2024-05-29_14-52-59 Snipaste_2024-05-29_14-57-19