Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete translation #1182

Open
swordLi opened this issue May 29, 2024 · 0 comments
Open

Incomplete translation #1182

swordLi opened this issue May 29, 2024 · 0 comments

Comments

@swordLi
Copy link

swordLi commented May 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant