Ex_Cldr v2.16.0 Release Notes

Release Date: 2020-06-05 // almost 4 years ago
  • ๐Ÿš€ This is the changelog for Cldr v2.16.0 released on June 6th, 2020. For older changelogs please consult the release tag on GitHub

    โœจ Enhancements

    • Add configuration key :force_locale_download for backend and the global configuration. Locale data is ex_cldr version dependent. When a new version of ex_cldr is installed, no locales are installed and therefore locales are downloaded at compilation time as required. This ensures that the right version of the locale data is always associated with the right version of ex_cldr.

    However:

    • If locale data is being cached in CI/CD there is some possibility that there can be a version mismatch. Since reproducable builds are important, using the force_locale_download: true in a backend or in global configuration adds additional certainty. The default setting is false thereby retaining compatibility with existing behaviour. The configuration can also be made dependent on mix environment as shown in this example:
    defmodule MyApp.Cldr do
      use Cldr,
          locales: ["en", "fr"],
            default_locale: "en",
            force_locale_download: Mix.env() == :prod
    
    

    ๐Ÿ› Bug Fixes

    • ๐Ÿ”ง Validate configured locales in a backend case insensitively and with either BCP 47 or Poxix ("-" or "_") separators.