[MGNLUI-5786] Provide API from I18NAuthoringSupport for locales on empty selection Created: 02/Apr/20  Updated: 02/Apr/20

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

Type: Task Priority: Neutral
Reporter: Rishab Dhar Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File empty-selection-non-localized-field-template.png     PNG File item-selected-localized-field-template.png    
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

The current API of I18NAuthoringSupport only provides availableLocales and defaultLocale when an Item is selected in the browser view.

 List<Locale> getAvailableLocales(T node);
 Locale getDefaultLocale(T node);

This results in dialogs being constructed incorrectly, where fields declared as i18n in FormDefinition still are presented as non-localized fields for empty selection. Once an item is selected, the field is constructed correctly again.

See attached screenshots for dialog created for Add Page action, where mgnl:template field is declared with i18n: true.


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