CatalogueModule
PackageReified.Constraint
The built-in message catalogue, and what a translator must cover.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| 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. |
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))The argument names each entry's template may interpolate.
Returns
Map<string, string list>
Verification Examples
Catalogue.arguments.["constraint.cardinality.between"] // [ "minimum"; "maximum" ]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"