Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
We usually LinqToXml a specific lang file to find the keys available for JS and then look at HttpContext.Current.Request["epslanguage"] and generate a little JSON put in javascript scope before other scripts:
var projectTranslatedStrings = {
templates: {
project: {
footer: {
printlinktext: 'Skriv ut sidan'
},
documentsection: {
gobacklinktext: 'Tillbaka'
}
}
}
};
Is there any way to translate texts in EPiServer in JavaScript?
In code behind one can usually do:
Is there any corresponding way to achieve the same thing using JavaScript? What I want to do is to translate some button labels and things like that.