public function getByKeyWithTranslation($key, $language)
    {
        return EmailTemplate::find()
            ->byKey($key)
            ->withTranslation($language)
            ->one();
    }
public function getByKeyWithTranslation($key, $language)
    {
        return EmailTemplate::find()
            ->byKey($key)
            ->withTranslation($language)
            ->one();
    }
public function getByKeyWithTranslation ( $ key , $ language ) { return EmailTemplate :: find ( ) -> byKey ( $ key ) -> withTranslation ( $ language ) -> one ( ) ; }
Find template by key with translation.

@param string $key
@param string $language

@return EmailTemplate|null
Find template by key with translation .