Closed nTraum closed 9 months ago
Thanks very much raising the issue and for the PR. I ended up manually updating the code since the right typing for the flexible locale parameter is Cldr.Locale.locale_refernce()
. And I needed to apply the same changes to the backend module. I also added a a module to exercise Cldr.with_locale/2,3 so that type bugs get surfaced earlier.
The result is ex_cldr version 2.37.3 with the following changelog entry:
Cldr.with_locale/3
and MyApp.Cldr.with_locale/2
. Thanks to @nTraum for the PR. Closes #215.<backend>.put_gettext_locale/1
.Thanks for the quick response and fixes @kipcole9, appreciate your work!
Cldr.with_locale
allows passing strings for the locale, as already verified by one of the tests intest/cldr_test.exs:319