I have a Highcharts graph and there's text inside. How can I change this text according to the language selected ? Here is my code :
var chart;
chart = new Highcharts.Chart({
(...)
subtitle: {
text: document.ontouchstart === undefined ?
'Click and drag in the plot area to zoom in' :
'Drag your finger over the plot to zoom in'
}
(...)
My en.yml file looks like :
en:
actions:
zoom: "Click and drag in the plot area to zoom in"
I have tried
t("actions.zoom")
and
<% t "actions.zoom" %>
But they are not working inside the Ajax. How should I do ?