mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
fix ordinal_num for French numbers ending with 1 (#236)
This commit is contained in:
committed by
Ernesto Rodriguez Ortiz
parent
218d184583
commit
778786b65b
@@ -89,7 +89,7 @@ class Num2Word_FR(Num2Word_EU):
|
||||
def to_ordinal_num(self, value):
|
||||
self.verify_ordinal(value)
|
||||
out = str(value)
|
||||
out += {"1": "er"}.get(out[-1], "me")
|
||||
out += "er" if value == 1 else "me"
|
||||
return out
|
||||
|
||||
def to_currency(self, val, longval=True, old=False):
|
||||
|
||||
Reference in New Issue
Block a user