format_currency
with standard:short
format does not format correctly
#923
Labels
format_currency
with standard:short
format does not format correctly
#923
Overview Description
Currently there isn't a way to properly format currencies in compact form by locale.
The data is partially imported to
locale.currency_formats["standard:short"]
But it does not store it for all magnitudes, rather just the last one
This leads to
standard:short
format not formatting numbers correctlyAdditional Information
The
import_cldr.py
needs to be updated to correctly store the patterns for all magnitudes and count types ("one", "other")It may also make sense to make a new function, for example,
format_compact_currency
to make the API similar to newly addedformat_compact_decimal
.The text was updated successfully, but these errors were encountered: