npgettext
No overview available.
def npgettext(
context: string,
singular: string,
plural: string,
number: integer
) - > string
Fetches the plural form of a message translation based on a specific context and numeric value.
Parameters
| Name | Type | Description |
|---|---|---|
| context | string | The translation context used to disambiguate identical strings in different parts of the application. |
| 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 numeric value used to determine whether the singular or plural form of the translation should be returned. |
Returns
| Type | Description |
|---|---|
string | The translated string in either singular or plural form, determined by the provided number and context. |