savoirfairelinux / num2words

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

correct the fr_DZ currency unit #481

Open FiberStudio opened 2 years ago

FiberStudio commented 2 years ago

Fixes # by fiberstudio

Changes proposed in this pull request:

Status

How to verify this change

i work in ALgeria, and as far as i know, 'dinard' is 100% a mistake, the currency unit is just like that of France, which is 'dinar' you can check with codes below:

from num2words import num2words
print(num2words(125800.6, to='currency',lang='fr_DZ'))

the output is: cent vingt-cinq mille huit cents Dinars et soixante Centimes

Additional notes

If applicable, explain the rationale behind your change.

thanks for your contributuion, num2words really helps me in my work. And i just want corret the little mistake in it to make num2words a more robust module. Thanks for your preview.