src/TranslatorAwareTrait.php
public function trans($id, $params = [], $domain = null, $locale = null)
    {
        return $this->getTranslator()->trans($id, $params, $domain, $locale);
    }
public function trans($id, $params = [], $domain = null, $locale = null)
    {
        return $this->getTranslator()->trans($id, $params, $domain, $locale);
    }
public function trans ( $ id , $ params = [ ] , $ domain = null , $ locale = null ) { return $ this -> getTranslator ( ) -> trans ( $ id , $ params , $ domain , $ locale ) ; }
Translate the id using the translator

@param string $id The message id
@param array params An array of parameters for the message
@param string|null $domain The domain for the message
@param string|null $locale The locale
@return string The translated string
Translate the id using the translator