[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: |
|
||||
| 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: | |||||
| 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 ] |