Skip to content

Releases: elixir-cldr/cldr

Cldr version 2.43.1

27 Aug 07:53
Compare
Choose a tag to compare

Bug Fixes

  • Fix Cldr.Locale.timezone_from_locale/1 when the territory has one zone and the zone short code is not instantiated as part of the language tag.

Cldr version 2.43.0

24 Aug 20:22
Compare
Choose a tag to compare

Deprecations

  • Deprecate Cldr.Timezone.fetch/1 in favor of Cldr.Timezone.fetch_short_zone/1

  • Deprecate Cldr.Timezone.get/1 in favor of Cldr.Timezone.get_short_zone/1

  • Deprecate Cldr.Timezone.timezones_for_territory/0 in favor of Cldr.Timezone.timezones_by_territory/0

  • Deprecate Cldr.Timezone.validate_timezone/1 in favor of Cldr.Timezone.validate_short_zone/1

Enhancements

  • Adds metazone, metazone mapping and primary zone data to the build process. This data supports timezone name localisation for a future release of ex_cldr_dates_times. See the github discussion for more background.

    • Adds Cldr.Config.metazones/0
    • Adds Cldr.Config.metazone_mapping/0
    • Adds Cldr.Config.metazone_ids/0
    • Adds Cldr.Config.primary_zones/0
  • Adds Cldr.Timezone.canonical_timezones/0 to return the mapping of IANA long timezone names to their canonical equivalent.

  • Adds Cldr.Timezone.canonical_timezone/1 to return the canonical timezone name for a given IANA long timezone name, or {:error, "Etc/Unknown"}.

Cldr version 2.42.0

26 Mar 05:37
Compare
Choose a tag to compare

Bug Fixes

  • Support Elixir 1.19 and OTP 28 without errors or warnings. Primarily this relates to changes to OTP's new :re module and Elixir's evolving type system.

Cldr version 2.41.1

21 Mar 22:17
Compare
Choose a tag to compare

Bug Fixes

  • Changes compile-time calls to List.flatten/1 to be Elixir.List.flatten/1 to help resolve unpredictable compile errors. Relates to #256.

Cldr version 2.41.0

18 Mar 03:54
Compare
Choose a tag to compare

Breaking Data format changes

There are some changes to the underlying locale data format that will be a breaking change for results returned from:

  • Cldr.DateTime.Format.time_formats/{1,2,3}
  • Cldr.Number.Symbol.number_symbols_for/3
  • MyApp.Cldr.Calendar.day_periods/{0, 1, 2}

The data changes are summarised as:

  • Delimiters are now organized with :default and :variant quotation marks where the data is available.
  • Time formats now group the :default and :ascii alternatives.
  • Day periods used for date/time formatting now group the alternatives for am and pm where the data is available.
  • Day period display names now group the alternatives for am and pm where the data is available.

Enhancements

Cldr version 2.40.4

17 Mar 17:47
Compare
Choose a tag to compare

Bug Fixes

  • Remove :eex and :ex_unit from :extra_applications. Thanks to @tanguilp for the report. Closes #253.

CLdr version 2.40.3

09 Mar 06:06
Compare
Choose a tag to compare

Bug Fixes

  • Fixes compilation error when the path of the containing project contains non-ASCII characters. Thanks to @zachdaniel and @albinkc for the report. Closes #251.

Cldr version 2.40.2

22 Dec 21:23
Compare
Choose a tag to compare

Bug Fixes

  • Support (and automatically configure) Elixir 1.18's JSON module as a :json_library in the global configuration. Thanks to @Neophen for the report. Closes #247.

Cldr Version 2.40.1

16 Aug 06:04
Compare
Choose a tag to compare

Bug Fixes

  • Fix specs to suport dialyzer flags :error_handling, :unknown, :underspecs, :extra_return, :missing_return

Cldr version 2.40.0

26 Jul 00:43
Compare
Choose a tag to compare

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 a json library to decode it. Where no library is configured ex_cldr will attempt to identify one. This release adds auto-configuring OTP 27's :json module through a proxy implemented in Cldr.Json (which is part of cldr_utils).