npgettext
Translates a plural message with the specified context.
info
Shorthand for L10n.npgettext
.
Signature
npgettext(
context: string,
message: string,
messagePlural: string,
count: number,
...arguments: string[]
): string
Parameters
Name | Type | Optional | Description |
---|---|---|---|
context | string | No | Specifies the translation context. |
message | string | No | Specifies the message to translate. |
messagePlural | string | No | Specifies the plural message to translate. |
count | number | No | Specifies the count for the plural (can be reference in the message with %1 ). |
arguments | string[] | Yes | Optional string arguments which can be referenced in the message using the percent sign followed by the argument index %n . The count value is automatically included as the first argument (%1 ). |
Return value
Returns the translated message.