Closed maennchen closed 3 years ago
Thanks @kipcole9 :heart:
Thanks for the report, that was quite sloppy of me. The fix requires an update to both ex_cldr version 2.22.1 and ex_cldr_units version 3.5.3.
The changelog entries are:
Cldr.Number.PluralRule.plural_type/2
correcly returns a plural type when no backend is provided, no default backend is configured and the locale is a t:Cldr.LanguageTag
Cldr.validate_locale/1
doesn't raise if there is no default backend configured and the locale is a t:Cldr.LanguageTag
MyApp.Cldr.Unit.to_string/2
(ie on the backend module) and no default backend is configured. Thanks again to @maennchen. Closes #22. Requires at least ex_cldr version 2.22.1
Issue
When using
MyApp.Cldr.Unit.to_string!(7.3, unit: :kilogram)
, the following error is raised.I've tried to use different notations and always get the same result:
Versions