API Reference Cldr Units v3.5.2

Modules

Supports the CLDR Units definitions which provide for the localization of many unit types.

Additional domain-specific units can be defined to suit application requirements. In the context of ex_cldr there are two parts of configuring additional units.

Functions to manage unit name aliases

Functions to support the base unit calculations for a unit.

Unit conversion functions for the units defined in Cldr.

Options structure for unit conversions

Simple arithmetic functions for the Unit.t type

Parse unit strings into composable unit structures. These structures can then be used to produced localized output, or to be converted to another unit of the same unit category.