Cldr version 2.37.0
Bug Fixes
- Fixes
Cldr.Locale.parent/1
to use:und
as the ultimate parent rather than the default locale. This brings closer conformance to the CLDR specification.
Enhancements
-
Upgrade to CLDR 43 data.
-
Locale data is now versioned. If a locale file is found but if has no version (data prior to this release) or a version that does not match, the appropriate locale file is downloaded. This ensures locale files and
ex_cldr
are kept in sync. Closes #188. -
Changes
Cldr.version/0
to return the version of CLDR data as at:Version.t/0
. This is then used to check the version of the locale data and forcing a download if the locale data is out of date for this release ofex_cldr
. -
Adds
Cldr.Locale.script_direction_from_locale/1
andMyApp.Cldr.Locale.script_direction_from_locale/1
to return:ltr
(for left-to-right scripts) or:rtl
(for right-to-left scripts). Closes #196. Thanks to @Doerge for the suggestion. -
Adds
Cldr.Validity.Script.unicode_script_to_subtag/1
as public, undocumented function. This function is required byex_cldr_person_names
and may be documented in a future release. It maps between a unicode script name (like that returned byUnicode.script/1
in theunicode
library) to the appropriate subtag used by CLDR. -
Unit data is now kept as Decimal not Ratio so
:ratio
is no longer a dependency here, or inex_cldr_units
.