I have been able to successfully modify Plotly's toolbar in Dash using a dict (config) passed to dash_core_components.Graph
Now I want to change the "tooltip" or label of the remaining buttons to another language. The documentation states that I can change de locale (language) of the labels using the "locale" parameter. I've seen this both in JavaScript and R docs, being applied to Plotly Graphs or to dash_core_components.Graph:
Now I need to do this in Python, but I haven't been able to do this. This is what I've tried:
config_plots = {'modeBarButtonsToRemove':["sendDataToCloud","lasso2d","pan2d","autoScale2d","select2d","zoom2d","zoomIn2d", "zoomOut2d"],
"locale":"de"}
dcc.Graph(id="plot",config=config_plots,
figure={"data":plotdata,"layout":layout})
I have added the locale parameter as well to plotly graphs (plotly.graph_objs) and tried with different locales I know that exist, but I've had no luck so far.
The question: How can I customize the text of the labels? Am I missing something using the locale parameter? Is there any way to change the text of the labels so I can translate it without using the locale parameter?
Please note that I know very little of JavaScript so I would prefer to do this in Python if possible