Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-8094

Switchable field: Internationalize inner switching field

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • 6.2.34
    • None
    • None

    Description

      The switchable field offers two switching options. Either combo box and radio buttons. Technically speaking this is field configuration. However, using the i18n setting at this level seems to have no effect.

      Consider the following configuration:

      form:
        properties:
          switchable:
            $type: switchableField
            label: Switchable example
            field:
              $type: radioButtonGroupField
              i18n: true // this is the setting being ignored
              layout: horizontal
              datasource:
                $type: optionListDatasource
                options:
                  - name: foo
                    value: foo
                    label: Foo
                  - name: bar
                    value: bar
                    label: Bar
            itemProvider:
              $type: jcrChildNodeProvider
            forms:
              - name: foo
                properties:
                  foo:
                    $type: textField
                    i18n: true
                    label: Foo
              - name: bar
                properties:
                  bar:
                    $type: richTextField
                    i18n: true
                    label: Bar
      

      The expected outcome here is the name "field" will get the i18n locale information concatenated when saved.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgange Richard Gange
              Nucleus
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD