Skip to content

Cldr Numbers version 2.37.0

Choose a tag to compare

@kipcole9 kipcole9 released this 23 Dec 20:21
· 13 commits to main since this release

Enhancements

  • Adds :gender and :grammatical_case options to Cldr.Number.to_string/3. When :format is 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/0 and Cldr.Number.Format.Options.valid_grammatical_case/0 to return a list of valid values for the :gender and :grammatical_case options to Cldr.Number.to_string/3. Note that a valid :gender or :grammatical_case does not imply that the related RBNF rule exists, only that the value is valid.