[MGNLUI-8094] Switchable field: Internationalize inner switching field Created: 24/May/23  Updated: 30/May/23

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.34
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Team: Nucleus

 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.



 Comments   
Comment by Roman Kovařík [ 25/May/23 ]

Related docu https://docs.magnolia-cms.com/product-docs/6.2/Administration/Troubleshooting/Known-issues.html#_switchable_field_with_i18ntrue_ignores_other_locales

Generated at Mon Feb 12 09:52:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.