Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30588

It is impossible to translate labels for "choice" type attributes of custom tags.

    XMLWordPrintable

Details

    Description

      Let's say there is "my-tag" custom tag with "size" choice attribute. This custom tag is migrated from legacy, and it is used in a lot of different places. Possible options for "size" attribute are sm, md, lg. There is no way to translate those options and show the formatted label for them.

      custom_tags:
          test:
              template: '@ezdesign/field_type/ezrichtext/custom_tag/my-tag.html.twig'
              icon: '/bundles/ezplatformadminui/img/ez-icons.svg#my-tag'
              is_inline: false
              attributes:
                  size:
                      type: 'choice'
                      required: false
                      default_value: 'md'
                      choices: ['sm', 'md', 'lg']
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            l0rdj l0rdj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: