Ask a Question
Back to All

Using localization in jQuery functions

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?