Skip to main content

_

Translates a message.

info

Shorthand for L10n._.

Signature

_(message: string, ...arguments: string[]): string

Parameters

NameTypeOptionalDescription
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.