• Append a localized "(Experimental)" suffix to a type's display label when that (documentName, type) is fenced; otherwise return the label unchanged. Pure so the create-dialog label logic is unit-testable without Foundry — the caller injects the localizer.

    Parameters

    • documentName: string

      The Foundry document name (e.g. "Actor").

    • type: string

      The document sub-type value (e.g. "cohort").

    • label: string

      The already-localized base label for the type.

    • localize: (key: string) => string

      A localization function (sohl.i18n.localize in production).

    Returns string

    The label, suffixed with (Experimental) when the type is fenced.