CatalogueModule
PackageReified.Constraint
The built-in message catalogue, and what a translator must cover.
Summary
| Name | Signature | Synopsis |
|---|
| Operations |
| keys | Catalogue.keys | Every message key Reified can produce, including the composition and joining entries. |
| arguments | Catalogue.arguments | The argument names each entry's template may interpolate. |
| english | Catalogue.english | The neutral English template for each entry, used when no resource resolves. |
| pluralArgument | Catalogue.pluralArgument | The argument each entry may be pluralized on, when it declares one. |
Operations
kind:member
Every message key Reified can produce, including the composition and joining entries.
Verification Examples
Catalogue.keys |> List.filter (fun key -> not (translations.ContainsKey key))
kind:member
Catalogue.arguments
MemberThe argument names each entry's template may interpolate.
Returns
Map<string, string list>
Verification Examples
Catalogue.arguments.["constraint.cardinality.between"] // [ "minimum"; "maximum" ]
kind: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"
kind:member
Catalogue.pluralArgument
MemberThe 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"