Skip to content

Releases: crbelaus/trans

3.0.1

07 Jul 11:05
a236349
Compare
Choose a tag to compare

What's Changed

  • Translator.translate/2 should fall back to default locale when translation is missing by @krns in #84

New Contributors

  • @krns made their first contribution in #84

Full Changelog: v3.0.0...v3.0.1

3.0.0

03 Jul 17:42
Compare
Choose a tag to compare

This release bumps the major version as there are multiple backwards incompatible changes with the 2.x series:

  • Unstructured translations are not supported anymore
  • Support fallback chains when resolving translations
  • Require a default locale when using Trans
  • Return nil for unitialised embed in struct

Additionally:

  • The minimum Elixir version to use Trans is 1.11
  • There are multiple fixes, doc improvements and test refactors

2.3.0

21 Sep 10:35
Compare
Choose a tag to compare

This release incorporates some interesting new functionality:

  • Allow using embedded schemas for structured translations. This is now the preferred way of using Trans
  • Allow translating entire structs using the new translate/2 function
  • Raise if a translation does not exist when using the new translate!/3 function
  • Documentation imrovements

Additionally:

  • Trans now requires Elixir 1.7 or higher
  • Tests have been migrated from CircleCI to GitHub Actions
  • Trans dependencies have been updated to avoid compilation warnings

2.2.0

01 Feb 18:34
Compare
Choose a tag to compare

This is a minor release which removes unsupported Elixir version and requires version 1.6 or newer. This release also allows passing the locale as a string (#63).

This release also removes Faker as a dependency and updates ExDoc so we can use the new documentation features.

2.1.0

08 Dec 10:54
Compare
Choose a tag to compare

This release of Trans updates the Ecto dependency to 3.0. Although the dependency update is a breaking change, client code should not need any modifications.

  • #57 Use Ecto 3

2.0.4

14 Oct 09:05
Compare
Choose a tag to compare

This release of Trans contains minor improvements to the source code and CI integration.

  • #51 Use Macro.expand instead of eval (thanks to @josevalim 🙇)
  • #52 Migrate to CircleCI
  • #53 Add Apache 2.0 License
  • #54 Use Elixir formatter
  • #55 Remove Module.eval_quotedcall

2.0.3

11 Aug 09:25
Compare
Choose a tag to compare

This is a very minor release which simply updates the cannonical URLs to the GitHub repository in the documentation and in hex.pm project page.

2.0.2

01 Feb 17:59
Compare
Choose a tag to compare

The main changes of Trans 2.0.2 are:

  • #46 Allow passing the locale from variables
  • #48 Support Elixir up to 1.5 and OTP up to 20.0

2.0.1

01 Feb 17:59
Compare
Choose a tag to compare

The main changes of Trans 2.0.1 are:

  • #38 Integrate Ebert
  • #41 Fix README
  • #43 Relax Poison version restrictions

2.0.0

11 Apr 21:34
Compare
Choose a tag to compare

This article explains the changes, improvements and future plans for Trans.

This version of Trans contains a profound rewrite of all its components in order to provide a smaller, safer and more usable interface.

The main changes of this release are:

  • #30 Revamped tests
  • #31 Redesign QueryBuilder component
  • #36 Update docs and unify function call

The full list of changes discussed and implemented in this release can be viewed here. The release was also announced on Twitter