Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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.