• Read the localized subtype options for a document type from its registered DataModel. The type's DataModel subType field (when present) carries a { value: localizationKey } choices map; this resolves that map through the pure subTypeOptionsFromChoices and localizes each label. Types without a subType field yield an empty array — the signal that no subtype is asked.

    Foundry-boundary: reads CONFIG.<documentName>.dataModels[type].schema and sohl.i18n; the mapping itself is delegated to the pure helper.

    Parameters

    • documentName: string

      The document class name (e.g. "Item", "Actor").

    • type: string

      The document subtype whose DataModel to inspect.

    Returns SubTypeOption[]

    The localized subtype options (empty when the type has no subtypes).