Open fekle opened 5 days ago
Yes, that does look like a bug - and a strange one. I'll see if I can resolve it my day (sun just rising in UTC+11)
Thank you!
I found a few more oddities and created a small Minimal Reproduction project here: https://github.com/fekle/ex_cldr_units_repro. I hope this helps!
Specifically, Cldr.Unit.display_name
does not work for kilojoules, and the formatting of bytes and bits seems odd - see test/ex_cldr_units_repro_test.exs
in the linked repo.
Greetings from UTC+1 ;)
Thanks @fekle, I'm still investigating - will do my best to get this resolved by Monday latest.
Thanks, and no stress!
Hi there,
I'm using this great library to format various units correctly for different languages, and for almost everything I have tested, the unit names are correct.
However, what I've noticed is that there is an issue with the abbreviation for kilojoules. In many languages (and SI, as far as I know), the shorthand is
kJ
with an uppercaseJ
, butcldr_units
always returnskj
:As far as I can tell, everything is configured correctly on my end, and the CLDR dataset also specifies "kJ." Is there anything I'm missing here?
Also, I hope I'm posting this issue in the correct repo; it is not entirely clear to me if the unit name formatting is done in this lib or the base CLDR library.
Some more information:
Thank you for this great library, and let me know if there is anything I can do to help or if you need more information!