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.
Read the localized subtype options for a document
typefrom its registered DataModel. The type's DataModelsubTypefield (when present) carries a{ value: localizationKey }choicesmap; this resolves that map through the pure subTypeOptionsFromChoices and localizes each label. Types without asubTypefield yield an empty array — the signal that no subtype is asked.Foundry-boundary: reads
CONFIG.<documentName>.dataModels[type].schemaandsohl.i18n; the mapping itself is delegated to the pure helper.