savoirfairelinux / num2words

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

Wrong brazilian portuguese translation (dezanove instead of dezenove) #546

Open leandromattioli opened 9 months ago

leandromattioli commented 9 months ago

Expected Behaviour

print(num2words(19, lang='pt-BR')) # dezenove

Actual Behaviour

print(num2words(19, lang='pt-BR')) # dezanove

leandromattioli commented 9 months ago

Actually, the lang parameter should be pt_BR. Anyway, the library should emit a warning or even throw an exception instead of silently choosing Portuguese from Portugal...