Discussions
Using localization in jQuery functions
about 2 years ago by Michael Tobisch
Hi,
is it possible to use localization in jQuery functions?
Example: I have a localization file (localization.de-at.json):
{
"ExpandAll":"Alle ausklappen",
"CollapseAll":"Alle einklappen"
}
I want to use the dnnExpandAll jQuery plugin like this:
$("#DemoPanel .dnnFormExpandContent a").dnnExpandAll({
targetArea: "#DemoPanel",
expandText: "{{Localization.ExpandAll}}",
collapseText: "{{Localization..CollapseAll}}"
});
But this does not work. How do I achieve this?