Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5138

When using i18n option in data-sly-text translation is called twice

    XMLWordPrintableJSON

Details

    Description

      When using the i18n option in the data-sly-text attribute the I18nRuntimeExtension is called twice.
      To reproduce use following snippet in a sightly template:

      <div data-sly-text="${'test.key' @ i18n}">test</div>

      Generated java source shows:

      Object var_textcontent4 = renderContext.call("xss", renderContext.call("i18nTranslation", renderContext.call("i18nTranslation", "test.key", obj().with("i18n", null)), obj().with("context", "text").with("i18n", null)), "text");
      

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              michael.kreis Michael Kreis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: