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.