All Versions
81
Latest Version
Avg Release Cycle
14 days
Latest Release
-

Changelog History
Page 1

  • v2.26.2 Changes

    🚀 This is the changelog for Cldr v2.26.2 released on February 22nd, 2022. For older changelogs please consult the release tag on GitHub

    🐛 Bug Fixes

    • Fix Cldr.Locale.canonical_language_tag/3 for cases when the :add_likely_subtags is false and the locale name is known.
  • v2.26.1 Changes

    🚀 This is the changelog for Cldr v2.26.1 released on February 21st, 2022. For older changelogs please consult the release tag on GitHub

    🐛 Bug Fixes

    • Fix Cldr.locale_and_backend_from/2 for atom locales. Since this is a private API there should be no upstream issues with dependent libraries.
  • v2.26.0 Changes

    🚀 This is the changelog for Cldr v2.26.0 released on February 21st, 2022. For older changelogs please consult the release tag on GitHub

    LanguageTag structure changes

    • Cldr.LanguageTag.t has been revised with the :cldr_locale_name and :rbnf_locale_name now being atoms rather than binaries. This is unlikely to affect client code. The primary benefit, apart from a slightly improve

    🐛 Bug Fixes

    • 0️⃣ Fix setting the default backend with Cldr.put_default_backend/1 which wasn't actually being set.

    • 🛠 Fix Config.message_formats to default to an empty map, not an empty list.

    • 🛠 Fix Cldr.Locale.parents/1 to return an {:ok, list} tuple on success rather than a bare list.

    • 🛠 Fix <backend>.Cldr.Number.{Cardinal, Ordinal, Spellout}.pluralize/3 for non-integer Decimal numbers.

    ✨ Enhancements

    • ➕ Add <backend>.Trans module to support closer integration with the trans for database translations.

    • ➕ Add Cldr.Locale.fallback_locales/1 to return the list of recursively created parent locales, including the provided locale. This can be used to support resolving translations from a system that might be sparsely populated.

    • Add Cldr.Locale.fallback_locale_names/1 that returns the :cldr_locale_name component of the locales returned by Cldr.Locale.fallback_locales/1.

    • Adds Cldr.Locale.locale_from_territory/{1,2} to derive a "best fit" locale for a given territory. Also adds <backend>.Locale.locale_from_territory/1.

    • Adds Cldr.Locale.locale_from_host/{2, 3} to derive a "best fit" locale for a given host name. Also adds <backend>.Locale.locale_from_host/2.

    • Adds Cldr.Locale.territory_from_host/1 to return the territory for a given host name. Also adds <backend>.Locale.territory_from_host/1.

    • Adds Cldr.Locale.consider_as_tlds/0 to return a list of valid territory suffixes that are considered as generic TLDs instead. See https://developers.google.com/search/docs/advanced/crawling/managing-multi-regional-sites.

    • Adds Cldr.Locale.languages_for_territories/0 to return a mapping of territories to that territory's most spoken language.

    • Adds Cldr.put_gettext_locale/1 that sets the gettext locale for a given t:Cldr.LanguageTag.

    • Adds Cldr.TestHelper module in test/suport to provide testing helpers. Initially provides with_no_default_backend/1 function.

  • v2.25.0 Changes

    🚀 This is the changelog for Cldr v2.25.0 released on December 16th, 2021. For older changelogs please consult the release tag on GitHub

    🐛 Bug Fixes

    • 🛠 Fixes configuring locales when the default locale is in posix form (ie like en_GB) as apposed to BCP47 form (ie en-GB). In fixing this bug, forming the normalised list of configured locales is now also standarised. Thanks to @gazzer82 for the report. Closes #165.

    ✨ Enhancements

  • v2.24.2 Changes

    🚀 This is the changelog for Cldr v2.24.2 released on December 5th, 2021. For older changelogs please consult the release tag on GitHub

    🐛 Bug Fixes

    • Obviate compiler warning for Code.can_await_module_compilation?/0 on Elixir versions where the function does not exist. Thanks to @DaTrader for the report.

    ✨ Enhancements

    • 🔧 Apply @external_resource for each configured locale in backend modules.
  • v2.24.1 Changes

    🚀 This is the changelog for Cldr v2.24.1 released on November 1st, 2021. For older changelogs please consult the release tag on GitHub

    🐛 Bug Fixes

    • Fix compilation performance regression when compiling ex_cldr on Elixir 1.13. ex_cldr has relied upon a private API in Elixir to detect when compilation is in progress and to then cache locale files. This improves compilation performance when many locales are configured by up to 6x. However the private API has changed in Elixir 1.13 and there is now a public API as well (hooray!). Thanks very much to @josevalim for the support as always, and for the PR that fixed the issue.
  • v2.24.0 Changes

    🚀 This is the changelog for Cldr v2.24.0 released on October 27th, 2021. For older changelogs please consult the release tag on GitHub

    ✨ Enhancements

    • ⚡️ Updated to CLDR 40 data. In addition, the canonical format of some data has changed; for example subdivisions are now atoms, not strings. This change is primarily of interest to authors writing libraries that use the raw underlying locale data.

    🐛 Bug Fixes

    • 🛠 Fixes an issue with the locale loader which was incorrectly atomizing date part keys in date/time formats and conversly incorrectly stringifying the number system in the same formats.

    • Cldr.validate_territory_subdivision/1 was case sensitive and didn't correctly handle atoms and binaries. Required to support ex_cldr_territories properly.

    • Correctly atomize the keys for the locale display names "language" types.

    • Cldr.Plug.PutSession now uses the locale key :canonical_locale_name to serialize to the session. Previously it was using :cldr_locale_name which does not include any of the extension information. Extension information encodes user preferences and is required to properly support localisation.

    • 🗄 Cldr.known_territories/1 no longer includes reserved, deprecated, special use or private use territory codes.

    🗄 Deprecations

    • Deprecated Cldr.Config.known_locale_names/1 in favour of Cldr.Locale.Loader.known_locale_names/1.

    • Deprecated Cldr.Config.known_rbnf_locale_names/1 in favour of Cldr.Locale.Loader.known_rbnf_locale_names/1.

    • Deprecated Cldr.Config.get_locale/2 in favour of Cldr.Locale.Loader.get_locale/2.

    • 🗄 Deprecated the :put_session? option in Cldr.Plug.SetLocale. Use the plug Cldr.Plug.PutSession instead.

  • v2.24.0-rc.6 Changes

    🚀 This is the changelog for Cldr v2.24.0-rc.6 released on October 25th, 2021. For older changelogs please consult the release tag on GitHub

    🚀 This is expected to be the last RC before final release on October 27th.

    🗄 Deprecations

    • Deprecated Cldr.Config.known_locale_names/1 in favour of Cldr.Locale.Loader.known_locale_names/1

    • Deprecated Cldr.Config.known_rbnf_locale_names/1 in favour of Cldr.Locale.Loader.known_rbnf_locale_names/1

  • v2.24.0-rc.5 Changes

    🚀 This is the changelog for Cldr v2.24.0-rc.5 released on October 23rd, 2021. For older changelogs please consult the release tag on GitHub

    🗄 Deprecations

    • Deprecated Cldr.Config.get_locale/2 in favour of Cldr.Locale.Loader.get_locale/2.
  • v2.24.0-rc.4 Changes

    🚀 This is the changelog for Cldr v2.24.0-rc.4 released on October 21st, 2021. For older changelogs please consult the release tag on GitHub

    🐛 Bug Fixes

    • 🛠 Fixes an issue with the locale loader which was incorrectly atomizing date part keys in date/time formats and conversly incorrectly stringifying the number system in the same formats.