Configurable naming for inferred Incant labels and titles.
Explicit DSL labels and titles always take precedence. The vocabulary only applies when Incant must infer display text from an identifier.
Summary
Functions
Returns the naming options declared by an admin metadata value.
Returns a sentence-style inferred label.
Resolves inferred labels throughout a portable admin contract.
Returns the display text for a value when the naming vocabulary defines an
explicit term for it, or nil when it does not. Unlike label/2, this does
not invent a title-cased form for unknown values, so it is safe for
humanizing data cells without mangling identifiers and model names.
Returns a title-style inferred title.
Types
Functions
Returns the naming options declared by an admin metadata value.
Returns a sentence-style inferred label.
@spec resolve_contract(Incant.Admin.Contract.t(), config()) :: Incant.Admin.Contract.t()
Resolves inferred labels throughout a portable admin contract.
Returns the display text for a value when the naming vocabulary defines an
explicit term for it, or nil when it does not. Unlike label/2, this does
not invent a title-cased form for unknown values, so it is safe for
humanizing data cells without mangling identifiers and model names.
Returns a title-style inferred title.