Skip to content

Releases: elixir-cldr/cldr_numbers

Cldr Numbers version 2.26.0

05 Apr 20:09
Compare
Choose a tag to compare

Cldr Numbers version 2.25.2

02 Mar 08:21
Compare
Choose a tag to compare

Bug Fixes

  • Fixes formatting of Decimal Inf and NaN numbers. Thanks to @sh41 for the report. Closes #26.

Cldr Numbers version 2.25.1

22 Feb 15:13
Compare
Choose a tag to compare

Bug Fixes

  • Remove compiler warnings on Elixir 1.11. Thanks to @koszta for the report. Fixes #24.

  • Remove spurious @dialyzer directives that are no longer required (because we understand dialyzer a little bit more now).

Cldr Numbers version 2.25.0

20 Feb 22:55
Compare
Choose a tag to compare

Enhancements

  • Updates to ex_cldr version 2.26.0 which uses atoms for locale names and rbnf locale names. This is consistent with other elements of t:Cldr.LanguageTag where atoms are used where the cardinality of the data is fixed and relatively small and strings where the data is free format.

Cldr Numbers version 2.24.0

29 Dec 19:43
Compare
Choose a tag to compare

Enhancements

  • Allowed limited forms of format composition. For example, composing a :long format with a :currency format:
iex> Cldr.Number.to_string!(100_000_000, format: :long) |> Cldr.Number.to_string(format: :currency) 
{:ok, "$100 million"}
  • Add format :currency_long_with_symbol which is a composite of :currency_long and the locales standard currency format. This supports formatting of of numbers like "$100 million" in the example above.

Cldr Numbers version 2.23.3

13 Dec 22:38
Compare
Choose a tag to compare

Bug Fixes

  • Fixes short formatting for decimal numbers. Thanks to @DaTrader for the report. Closes #135 on ex_money.

Cldr Numbers version 2.23.1

30 Nov 23:44
Compare
Choose a tag to compare

Bug Fixes

  • Replace use Mix.Config with import Config in config files

  • Fix typespec for <backend>.Cldr.Number.Transliterate.transliterate_digits/3

Cldr Numbers version 2.23.0

28 Oct 00:03
Compare
Choose a tag to compare

Enhancements

Bug Fixes

  • Arbitrary RBNF rule lookup falls back to the root locale (called "und") when checking if a rule is available. Thanks to @maennchen for the report. Closes #22.

  • Fixes performance issue when calling Cldr.Number.to_string/3 with an arbitrary RBNF rule name. Previously these formats would mistakenly read the raw json file for a locale incurring a significant performance penaly. Performance is now 100x faster as expected. Thanks to @maennchen for the bug report. Closes #21.

Deprecations

  • Don't call deprecated Cldr.Config.known_locale_names/1, call Cldr.Locale.Loader.known_locale_names/1 instead.

  • Don't call deprecated Cldr.Config.get_locale/2, use Cldr.Locale.Loader.get_locale/2 instead.

Cldr Numbers version 2.23.0-rc.4

26 Oct 13:13
Compare
Choose a tag to compare
Pre-release

Bug Fixes

  • Arbitrary RBNF rule lookup falls back to the root locale (called "und") when checking if a rule is available. Thanks to @maennchen for the report. Closes #22.

Cldr Numbers version 2.23.0-rc.3

25 Oct 10:54
Compare
Choose a tag to compare
Pre-release

Deprecations

  • Don't call deprecated Cldr.Config.known_locale_names/1, call Cldr.Locale.Loader.known_locale_names/1 instead.