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

Provide API from I18NAuthoringSupport for locales on empty selection

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rdhar Rishab Dhar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoR