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