mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
@@ -153,6 +153,7 @@ def set_current_locale(new_locale:Locale) -> None:
|
|||||||
|
|
||||||
def pluralize(noun:str, count:int | Sized, prefix_with_count:bool = True) -> str:
|
def pluralize(noun:str, count:int | Sized, prefix_with_count:bool = True) -> str:
|
||||||
"""
|
"""
|
||||||
|
>>> set_current_locale(Locale("en")) # Setup for doctests
|
||||||
>>> pluralize("field", 1)
|
>>> pluralize("field", 1)
|
||||||
'1 field'
|
'1 field'
|
||||||
>>> pluralize("field", 2)
|
>>> pluralize("field", 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user