Symfony\Component\Translation\TranslatorInterface::trans
Translates the given message.
Signature
public function trans(string
$id,
[array
$parameters = null,
[string
$domain = null,
[string
$locale = null]]] )
Parameters
$id
— string- The message id (may also be an object that can be cast to string)
$parameters
— array- An array of parameters for the message
$domain
— string- The domain for the message
$locale
— string- The locale
Returns
- string
- The translated string