mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-08 07:27:01 +08:00
Fix.
This commit is contained in:
parent
9cc8636662
commit
7705dccc99
@ -179,7 +179,7 @@ def _expand_decimal_point(m, lang="en"):
|
|||||||
|
|
||||||
def _expand_currency(m, lang="en", currency="USD"):
|
def _expand_currency(m, lang="en", currency="USD"):
|
||||||
amount = float((re.sub(r"[^\d.]", "", m.group(0).replace(",", "."))))
|
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 = {
|
and_equivalents = {
|
||||||
"en": ", ",
|
"en": ", ",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user