savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
813 stars 487 forks source link

Help using CURRENCY_FORMS #545

Closed arieltoledo closed 9 months ago

arieltoledo commented 9 months ago

From the file lang_ES.py I see that 'ARS': (('peso', 'pesos'), GENERIC_CENTS), is avaible in CURRENCY_FORMS. But I dont know how to load it. I try numero_palabras = num2words(numero, lang='es_ARS', ordinal=False, to='currency') but it fallbacks to es. How should I load it ?

arieltoledo commented 9 months ago

Found it in the test numero_palabras = num2words(numero, lang='es', ordinal=False, to='currency', currency='ARS')