You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 uppercase J, but cldr_units always returns kj:
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.
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.
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!
The text was updated successfully, but these errors were encountered: