Ex_Cldr v2.27.0 Release Notes

  • ๐Ÿš€ This is the changelog for Cldr v2.27.0 released on March 8th, 2022. For older changelogs please consult the release tag on GitHub

    ๐Ÿ› Bug Fixes

    • Remove spurious Cldr.Trans module. The new ex_cldr_trans provides this capability.

    โœจ Enhancements

    • โž• Add :host to the list of places that Cldr.Plug.SetLocale can look for to derive a locale for a request.

    • Add Cldr.Locale.fallback_locale_names!/1 to return the locale fallback chain or raise an execption.

    • โž• Add Cldr.with_locale/2 to execute a function with the process locale set to a given locale. The current locale is put back in place after the function executes.

    • Add Cldr.Locale.is_locale_name/1 guard. This is an area that needs some cleanup since we have

      • Cldr.is_locale_name/1 that permits atoms and strings since it is used to guard functions that might use Cldr.validate_locale/2. Therefore this is most useful for functions that take user input.
      • Cldr.Locale.is_locale_name/1 that permits only atom locale names since this the canonical form.