Invariant language version is created after installing a package on SXA sites


Description

Installing a package on Sitecore Experience Accelerator (SXA) sites might result in adding an invariant language for an item. The issue occurs because the FlagPublishingGroupingItems handler creates an invariant language item version from a partial design.

Solution

To resolve the issue, consider the following options:

Alternatively, you can assign the XA.Foundation.Publishing.FlagPublishingGroupingItems.Enabled setting to false by patching the Sitecore.XA.Foundation.Publication.config file. This allows skipping the default behavior of the FlagPublishingGroupingItems handler.