Optional
placeholders: TranslationVariables<T>Optional
options: TranslationOptionsOptional
number: numberOptional
options: TranslationOptionsOptional
placeholders: TranslationVariables<T>Optional
number: numberOptional
options: TranslationOptions
Translate a string
Param: app
The id of the app for which to translate the string
Param: text
The string to translate
Param: placeholdersOrNumber
Map of placeholder key to value or a number replacing
%n
Param: optionsOrNumber
The translation options or a number to replace
%n
withParam: options
Options object
Param: options.escape
Enable/disable auto escape of placeholders (by default enabled)
Param: options.sanitize
Enable/disable sanitization (by default enabled) [WARNING: This only work in DOM environment!]