# Locale aware Date/Time formatting, now with Options!

**URL:** <https://discourse.elm-lang.org/t/locale-aware-date-time-formatting-now-with-options/8214>\
**Category:** Show and Tell\
**Created:** [March 3, 2022, 8:50pm UTC](https://discourse.elm-lang.org/t/locale-aware-date-time-formatting-now-with-options/8214 "2022-03-03T20:50:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enkidatron](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/enkidatron/32/1976_2.png) [@Enkidatron](https://discourse.elm-lang.org/u/Enkidatron)\
**Post date:** [March 3, 2022, 8:50pm UTC](https://discourse.elm-lang.org/t/locale-aware-date-time-formatting-now-with-options/8214/1 "2022-03-03T20:50:07Z")

</div>

I have updated [my package for locale-aware date/time formatting](https://package.elm-lang.org/packages/enkidatron/elm-cldr/latest/) with my [proposed](https://discourse.elm-lang.org/t/adding-formatting-options-to-date-time-lib-elm-cldr/8145) API for using Intl-style options. I believe that this makes the package feature-complete enough to be used by other packages (e.g. Fluent-in-Elm type packages, charting packages, etc)!

This update does put a lot more data in each locale than there was before, so here are some example sizes:

- Basic app using `Cldr.Locale.allLocales` : 24MB
- Basic app using `Cldr.Locale.allLocales` , after gzip: 766KB
- Basic app using `Cldr.Locale.basicLocales` : 5.6MB
- Basic app using `Cldr.Locale.basicLocales` , after gzip: 217KB
- Basic app using a single locale: 255KB
- Basic app using a single locale, after gzip: 41KB

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [March 13, 2022, 8:51pm UTC](https://discourse.elm-lang.org/t/locale-aware-date-time-formatting-now-with-options/8214/2 "2022-03-13T20:51:02Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
