Skip to main content

pgettext

Translates a message with the specified context.

info

Shorthand for L10n.pgettext.

Signature

pgettext(context: string, message: string, ...arguments: string[]): string

Parameters

NameTypeOptionalDescription
contextstringNoSpecifies the translation context.
messagestringNoSpecifies the message to translate.
argumentsstring[]YesOptional string arguments which can be referenced in the message using the percent sign followed by the argument index %n. The first argument is referenced with %1.

Return value

Returns the translated message.