Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain currecny codes not implemented, e.g., SGD, CHF, AED, JPY #590

Open
shashikulk opened this issue Oct 21, 2024 · 0 comments
Open

Certain currecny codes not implemented, e.g., SGD, CHF, AED, JPY #590

shashikulk opened this issue Oct 21, 2024 · 0 comments

Comments

@shashikulk
Copy link

I am using num2words to convert amounts to words in respective currency. For example, input to my program can be 12.56 USD or 39.45 SGD, etc. I need to convert it to words in respective currency and print it on an invoice document.
But, for SGD currency, I am getting error

NotImplementedError: Currency code "SGD" not implemented for "Num2Word_EN"

I am using the below function call

num2words(Decimal(str(invoice_data['final_amount_paid'])), lang='en', to='currency', currency='SGD')

Similar error for CHF, AED and JPY currencies. I have not checked for more currencies, but at least for these 4 currencies, I am getting the above mentioned error.
For currencies like AUD, CAD, EUR, GBP, INR, USD, it is working fine.

Please help. What needs to be done to get rid of this error for these 4 currencies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant