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 isex_cldr
version dependent. When a new version ofex_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 ofex_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 isfalse
thereby retaining compatibility with existing behaviour. The configuration can also be made dependent onmix
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.
- Add configuration key