elixir-cldr / cldr

Elixir implementation of CLDR/ICU
Other
447 stars 33 forks source link

LanguageTag.to_string/1 with a LanguageTag struct with locale == %{} … #140

Closed Zurga closed 3 years ago

Zurga commented 3 years ago

…works. I found a small bug.

Thanks for the great work on the package!

kipcole9 commented 3 years ago

Much appreciated, that you for the catch!

LostKobrakai commented 3 years ago

I curious. What would make the locale be an empty map in the first place?

kipcole9 commented 3 years ago

its not the locale itself, its the u extension that can be either %{} which I suppose it will be in most cases, or it will be a Cldr.LanguageTag.U struct. I didn't cater for the %{} case in Cldr.LanguageTag.to_string/1.