mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Use language iso code for Vietnamese
Also update the readme and fix error, on the README.rst file we say tha code language to use is vn, but to make it work you have to use vi_VN. Let's refactor this to use the proper iso code `vi` in all places.
This commit is contained in:
@@ -40,7 +40,7 @@ from . import lang_HE
|
||||
from . import lang_IT
|
||||
from . import lang_ES_VE
|
||||
from . import lang_ES_CO
|
||||
from . import lang_VN
|
||||
from . import lang_VI
|
||||
from . import lang_TR
|
||||
from . import lang_NL
|
||||
from . import lang_UK
|
||||
@@ -73,7 +73,7 @@ CONVERTER_CLASSES = {
|
||||
'pt_BR': lang_PT_BR.Num2Word_PT_BR(),
|
||||
'he': lang_HE.Num2Word_HE(),
|
||||
'it': lang_IT.Num2Word_IT(),
|
||||
'vi_VN': lang_VN.Num2Word_VN(),
|
||||
'vi': lang_VI.Num2Word_VI(),
|
||||
'th': lang_TH.Num2Word_TH(),
|
||||
'tr': lang_TR.Num2Word_TR(),
|
||||
'nl': lang_NL.Num2Word_NL(),
|
||||
|
||||
@@ -31,7 +31,7 @@ denom = ('',
|
||||
'Octodecillion', 'Novemdecillion', 'Vigintillion')
|
||||
|
||||
|
||||
class Num2Word_VN(object):
|
||||
class Num2Word_VI(object):
|
||||
|
||||
def _convert_nn(self, val):
|
||||
if val < 20:
|
||||
Reference in New Issue
Block a user