Alias for ngettext
(translate accounting for plural forms)
message for singular
message for plural
determines which plural form to use
Rest
...args: any[]A translated string if found, or the original string.
Alias for npgettext
(translate accounting for plural forms in given context)
context
message for singular
message for plural
number used to determine which plural form to use
Rest
...args: any[]A translated string if found, or the original string.
Do a plural-forms lookup of a message id. msgid is used as the message id for purposes of lookup in the catalog, while n is used to determine which plural form to use. Otherwise, when n is 1 msgid is returned, and msgid_plural is returned in all other cases.
The translations domain.
The message context.
The singular string to translate.
The plural string to translate.
The number for pluralization.
Rest
...args: any[]Any additional values to use with interpolation
A translated string if found, or the original string.
Do a plural-forms lookup of a message id. msgid is used as the message id for purposes of lookup in the catalog, while n is used to determine which plural form to use. Otherwise, when n is 1 msgid is returned, and msgid_plural is returned in all other cases.
message for singular
message for plural
determines which plural form to use
Rest
...args: any[]A translated string if found, or the original string.
Do a plural-forms lookup of a message id. msgid is used as the message id for purposes of lookup in the catalog, while n is used to determine which plural form to use. Otherwise, when n is 1 msgid is returned, and msgid_plural is returned in all other cases.
context
message for singular
message for plural
number used to determine which plural form to use
Rest
...args: any[]A translated string if found, or the original string.
Look up the context and message id in the catalog and return the corresponding message string. Otherwise, the message id is returned.
context
message (text to translate)
Rest
...args: any[]A translated string if found, or the original string.
Bundle of gettext-based translation functions for a specific domain.