protected function getTranslatedMail($template, $type)
    {
        $mail = $this->loader->load($template, $type);

        return TranslationUtil::translateMail($mail, $this->getLocale(), $this->translator);
    }
protected function getTranslatedMail($template, $type)
    {
        $mail = $this->loader->load($template, $type);

        return TranslationUtil::translateMail($mail, $this->getLocale(), $this->translator);
    }
protected function getTranslatedMail ( $ template , $ type ) { $ mail = $ this -> loader -> load ( $ template , $ type ) ; return TranslationUtil :: translateMail ( $ mail , $ this -> getLocale ( ) , $ this -> translator ) ; }
Get the translated mail.

@param string $template The mail template name
@param string $type     The mail type defined in MailTypes::TYPE_*

@return MailInterface
Get the translated mail .