This commit is contained in:
comfyanonymous 2025-05-07 07:59:23 -04:00 committed by GitHub
parent 9cc8636662
commit 7705dccc99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,7 +179,7 @@ def _expand_decimal_point(m, lang="en"):
def _expand_currency(m, lang="en", currency="USD"):
amount = float((re.sub(r"[^\d.]", "", m.group(0).replace(",", "."))))
full_amount = num2words(amount, to="currency", currency=currency, lang=lang if lang != "cs" else "cz")
full_amount = number_to_text(amount)
and_equivalents = {
"en": ", ",