CatalogueModule

PackageReified.Constraint
The built-in message catalogue, and what a translator must cover.

Summary

NameSignatureSynopsis
keysCatalogue.keys Every message key Reified can produce, including the composition and joining entries.
argumentsCatalogue.arguments The argument names each entry's template may interpolate.
englishCatalogue.english The neutral English template for each entry, used when no resource resolves.
pluralArgumentCatalogue.pluralArgument The argument each entry may be pluralized on, when it declares one.

keys

Catalogue.keys
Member
Every message key Reified can produce, including the composition and joining entries.

Returns

string list

Verification Examples

Catalogue.keys |> List.filter (fun key -> not (translations.ContainsKey key))

arguments

Catalogue.arguments
Member
The argument names each entry's template may interpolate.

Returns

Map<string, string list>

Verification Examples

Catalogue.arguments.["constraint.cardinality.between"] // [ "minimum"; "maximum" ]

english

Catalogue.english
Member
The neutral English template for each entry, used when no resource resolves.

Returns

Map<string, string>

Verification Examples

Catalogue.english.["constraint.presence.present"] // "must be present"

pluralArgument

Catalogue.pluralArgument
Member
The argument each entry may be pluralized on, when it declares one.

Returns

Map<string, string option>

Verification Examples

Catalogue.pluralArgument.["constraint.cardinality.minimum"] // Some "minimum"