@umbraco-cms/backoffice
    Preparing search index...

    Function umbVariantIdsToCultures

    • Maps variant ids to their distinct cultures. Missing variant ids are skipped, so the result never contains undefined. The invariant culture is represented as null and is kept in the result; filter it out locally where it is not wanted.

      Parameters

      • variantIds: (UmbVariantId | undefined)[]

        The variant ids to map.

      Returns (string | null)[]

      The distinct cultures, in order of first occurrence.