ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.
Trans, the small library for embedded translations in Elixir schemas has been updated to 2.2.0.
The main change in this new version is that
Trans.Translator.translate/3 can now receive a string, allowing us to use the output of
Gettext.get_locale/0. For example, we can now write:
Trans.Translator.translate(Article, :title, Gettext.get_locale())
This release also removes Faker as a dependency, updates ExDoc and removes support for Elixir versions older than 1.6 (which are not officially supported by the core team anymore).
Read next Expecting the Unexpected in Elixir