Skip to content

Releases: elixir-cldr/cldr_messages

Cldr Messages version 0.8.0

27 Sep 02:20
Compare
Choose a tag to compare

Enhancements

  • Fix Cldr.Message.Print.to_string/2 to omit blank spaces at the end of lines when pretty printing.

Cldr Messages version 0.7.0

26 Sep 06:03
Compare
Choose a tag to compare

Enhancements

  • Allow Jason versions ~> 0.5 or ~> 1.0

Cldr Messages version 0.6.0

26 Sep 03:05
Compare
Choose a tag to compare

Enhancements

  • Add Cldr.Message.canonical_message/2 that converts a string message into a canonical form. This allows for fuzzy matching between two messages that may have different formatting (this is possible since the CLDR message format allows for non-formatting whitepsace in parts of the syntax).

  • Add documentation for some of the key functions. Much more documentation required before 1.0 release.

Cldr Messages version 0.5.0

21 Sep 23:18
Compare
Choose a tag to compare

Enhancements

  • Adds compile time checking that bindings are provided to the format/3 macro wherever possible

  • Supports later versions of ex_cldr and friends, ex_money as well as Elixir 1.11 without warnings

Cldr Messages version 0.3.0

28 Aug 23:53
Compare
Choose a tag to compare

Breaking Changes

  • Standardize on the Cldr.Message.format/3 as the public api. Cldr.Message.to_string/3 is removed.

Enhancements

  • Add the macro <backend>.Cldr.Message.format/3 to parse messages at compile time as a way to optiise performance at runtime. To use it add import <backend>.Cldr.Message to your module and use format/3. An example:
defmodule SomeModule do
  import MyApp.Cldr.Message

  def my_function do
    format("this is a string with a param {param}", param: 3)
  end
end
  • Add Cldr.Mesasge.format_to_list/3 that formats to an io_list

Bug Fixes

  • Fix dialyzer warnings. There are some warnings from combinators that will require nimble_parsec version 0.5.2 to be published before they are resolved.

Cldr Messages version 0.4.0

29 Aug 12:46
Compare
Choose a tag to compare

Bug Fixes

  • Conditionally compile functions that depend on optional dependencies

Cldr Messages version 0.2.0

27 Aug 02:40
Compare
Choose a tag to compare

Enhancements

  • Uses Cldr.Number.to_string/3 to format simple arguments that are numeric (integer, float and decimal). This gives a localised number format. An example:
iex> Cldr.Message.to_string "You have {number} jelly beans", number: 1234
"You have 1,234 jelly beans"
  • Similarly applies localized formatting for dates, times, datetimes.

Cldr Messages version 0.1.0

26 Aug 02:04
Compare
Choose a tag to compare

Enhancements

  • Initial release. This release implements Cldr.Message.to_string/3 and Cldr.Message.format/3

This initial release is the basis for building a complete message localization solution as an alternative to Gettext. There is a long way to go until that is accomplished.