Hi again! I’ve just published a new release of Trans.
Thanks to @sfusato, @RxAssim and Philipp Waldmann for their awesome contributions:
- Translations can now be stored using embedded schemas. This is now the preferred way of using Trans since it provides stronger, explicit and easy to use translations. The old plain maps are still supported, of course.
- Entire structs can now be translated using the new
translate/2function - We can automatically raise an error if a translation does not exist by using the new
translate!/3function. - Documentation has been greatly improved to showcase the new structured translations approach and to include specs in the public functions.
This release also updates the Trans dependencies to ensure clean compilations without warnings and requires Elixir 1.7 or higher.
You can see the release notes on GitHub or fetch the new version from hex.pm.
As usual, any comments, suggestions or pull-requests are more than welcome.
Love ![]()






















