ngettext
Return a string of the translation of either the singular or plural, based on the number.
def ngettext(
singular: string,
plural: string,
number: integer
) - > string
Return a string of the translation of either the singular or plural, based on the number.
Parameters
| Name | Type | Description |
|---|---|---|
| singular | string | The default singular form of the message to be translated |
| plural | string | The default plural form of the message to be translated |
| number | integer | The numerical value used to determine whether to use the singular or plural translation |
Returns
| Type | Description |
|---|---|
string | The translated string in either singular or plural form based on the provided count |