src/Gzero/Cms/Models/Block.php
public function getActiveTranslation($languageCode)
    {
        return $this->translations->first(function ($translation) use ($languageCode) {
            return $translation->is_active === true && $translation->language_code === $languageCode;
        });
    }
public function getActiveTranslation($languageCode)
    {
        return $this->translations->first(function ($translation) use ($languageCode) {
            return $translation->is_active === true && $translation->language_code === $languageCode;
        });
    }
public function getActiveTranslation ( $ languageCode ) { return $ this -> translations -> first ( function ( $ translation ) use ( $ languageCode ) { return $ translation -> is_active === true && $ translation -> language_code === $ languageCode ; } ) ; }
Returns active translation in specific language

@param string $languageCode Language code

@return mixed
Returns active translation in specific language