Changelog for Cldr_Units v1.0.0

This is the changelog for Cldr_Units v1.0.0 release on December 17th, 2017. For older changelogs please consult the release tag on GitHub

This version signals API stability and the first release candidate.

Breaking changes

  • Cldr.Unit.to_string/3 is now Cldr.Unit.to_string/2. The unit is now supplied as an option. For example:
iex> Cldr.Unit.to_string 23, unit: :gram
{:ok, "23 grams"}

iex> Cldr.Unit.to_string 23, unit: :gram, locale: "zh"
{:ok, "23克"}
  • Rename Cldr.Unit.available_units to Cldr.Unit.units

Enhancements