I've got a method that translates string according to selected language on the webpage, I'm using it to wrap all the strings on html, but I've also got some javascript code that's rendering some html such as in example below, what i need to do is to somehow insert this wrapper method from c# to Javascript. Any ideas on how can i achieve this?
html example:
<div>@Lang("String")</div>
Javascript:
$(".highchart-tooltip-events").html("<div><strong>Events:</strong></div>" + $evtsList.html()); now this Events string should be passed to the translate method.