Cldr Units version 3.12.0
Bug Fixes
- Fix
Cldr.Unit.measurement_system_from_locale/2
to allow the second parameter to be either a backend or a measurement system key.
Enhancements
-
Add
Cldr.Unit.from_map/1
to create a unit from a map. This can be used to consume the results of serializing a unit to JSON. The input parameter is designed to mirror the output of the custom Jason encoder. -
Updates to ex_cldr version 2.26.0 and ex_cldr_numbers version 2.25.0 which use atoms for locale names and rbnf locale names. This is consistent with other elements of
t:Cldr.LanguageTag
where atoms are used when the cardinality of the data is fixed and relatively small and strings where the data is free format.