elixir-cldr / cldr_dates_times

Date & times formatting functions for the Common Locale Data Repository (CLDR) package https://github.com/elixir-cldr/cldr
Other
69 stars 13 forks source link

Backend configure default format type #15

Closed kipcole9 closed 3 years ago

kipcole9 commented 4 years ago

Currently the default format types (one of :short, :medium, :long and :full) are hardcoded in each relevant module.

Allow these to be specified as a backend configuration for

  1. Dates/times/datetimes
  2. Relative dates
  3. Intervals
kipcole9 commented 3 years ago

Closing this issue because:

  1. The hardcoded formats are for intervals only
  2. And they are only sensible for the Gregorian calendar

A better approach is required to select the right format skeleton for intervals while still preserving the idea of :short, :medium and so on.