Releases: elixir-cldr/cldr
Cldr Version 2.40.1
Cldr version 2.40.0
Bug Fixes
- Fix parsing of date time avaialable formats and interval formats when building the locale json files. Turns out some locales have formats that have variants and these need to be specifically parsed and grouped.
Enhancements
- Support OTP's
:json
module.ex_cldr
uses json formatted locale data and supports configuring ajson
library to decode it. Where no library is configuredex_cldr
will attempt to identify one. This release adds auto-configuring OTP 27's:json
module through a proxy implemented inCldr.Json
(which is part ofcldr_utils
).
Cldr version 2.39.2
Bug Fixes
-
Fix
Cldr.LanguageTag.Sigil.sigil_l/2
which was incorrectly encoding the sigil flags. -
Bump
stream_data
dependency version.
Cldr version 2.39.1
Bug Fixes
- Fix
Cldr.Kino.DataTable.format/2
to reflect the changes requested by the Kino team. See the PR for further information.
Cldr version 2.39.0
Bug Fixes
- Fix dialyzer warnings on Elixir 1.17
Enhancements
- Adds
Cldr.Kino.DataTable.value_to_string/2
which can be used to format Kino DataTable cells in an future Kino release. A fork of Kino is available for testing.
Cldr version 2.38.1
Bug Fixes
-
Fix warnings on Elixir 1.17. This primarily relates to charlists constants now required to use
sigil_c
to avoid warnings. As a result, tests will only work on Elixir 1.16 and later even though support for the library is for Elixir 1.11 and later. -
Make
Cldr.Config.cldr_data_dir/0
a runtime result, not a compile time result. -
Sort currency data in
Cldr.Config.territories/0
so ensure deterministic order. Closes #227.
Cldr version 2.38.0
Cldr v2.38.0
This is the changelog for Cldr v2.38.0 released on April 21st, 2024. For older changelogs please consult the release tag on GitHub
Enhancements
-
Update to CLDR 45.0 data.
-
Adds
Cldr.validate_locale!/2
. Thanks to @jarrodmoldrich for the suggestion. -
Add decimal separator and grouping separator to the currency data for each locale. In some rare cases, like the currency [CVE](https://en.wikipedia.org/wiki/Cape_Verdean_escudo#:~:text=The%20escudo%20(sign%3A%20%3B%20ISO,subdivided%20into%20one%20hundred%20centavos.) in the locale pt-CV the currency symbol is placed where decimal separator is normally placed. The same can apply for the grouping separator although it appears not locale uses this field.
-
Adjust the
Inspect
protocol implementation fort:Cldr.LanguageTag.t/0
types. When the language tag is resolved to a CLDR locale then the output is executable code. For example:
iex> MyApp.Cldr.Locale.new!("en-US")
MyApp.Cldr.Locale.new!("en-US")
-
Fix dialyzer warnings. Thanks to @Munksgaard for the PR. Closes #220. Also fixes
:underspecs
warning and the:underspecs
dialyzer flag is now configured. -
Add configuration for the new ex_cldr_person_names backend module generator.
Cldr version 2.37.5
Bug Fixes
-
Fix warnings on Elixir 1.16.
-
Fix dialyzer warnings. Thanks to @Munksgaard for the PR. Closes #220.
Cldr version 2.37.4
Bug Fixes
- Reverts a change to the format of the alias data for subdivisions which was causing an exception in
ex_cldr_territories
. The change, which normalizes subdivision codes to be upcase atoms when the subdivision has its own ISO 3166 territory code, will be be added back forex_cldr
version 2.38.0 which will align with CLDR 44. Closes #216.