Cldr Numbers version 2.37.0
Enhancements
-
Adds
:genderand:grammatical_caseoptions toCldr.Number.to_string/3. When:formatis an RBNF rule name, these parameters are used to resolve a grammatical gender and grammatical case appropriate rule in the given locale, if one exists. The default falls back to gender only, then a rule without gender or grammatical case. Both options are indeed optional. Thanks to @tanguilp for the report and motivation. Closes #61. -
Adds
Cldr.Number.Format.Options.valid_gender/0andCldr.Number.Format.Options.valid_grammatical_case/0to return a list of valid values for the:genderand:grammatical_caseoptions toCldr.Number.to_string/3. Note that a valid:genderor:grammatical_casedoes not imply that the related RBNF rule exists, only that the value is valid.