Ex_cldr - Common Locale Data Repository (CLDR) functions for Elixir

Introducing ex_cldr_trans, a CLDR-integrated version of the fabulous trans by @belaustegui (more about trans in the forum).

The main enhancements are:

  • Infers configured locales from the CLDR backend module
  • Uses the CLDR backend default locale to identify the locale of the base untranslated column
  • Uses the locale fallback chain to find a translation
  • Executes in-database translations via a database function
  • Returns NULL (not JSON ‘Null’) for all cases

If in the future trans accepts my PR then this library will just become an API on top of it. But its a large-ish PR so no guarantees.

6 Likes