src/Node.php
public function translateOrFirst($locale = null)
    {
        $translation = $this->translate($locale, true);

        if ( ! $translation)
        {
            $translation = $this->translations->first();
        }

        return $translation;
    }
public function translateOrFirst($locale = null)
    {
        $translation = $this->translate($locale, true);

        if ( ! $translation)
        {
            $translation = $this->translations->first();
        }

        return $translation;
    }
public function translateOrFirst ( $ locale = null ) { $ translation = $ this -> translate ( $ locale , true ) ; if ( ! $ translation ) { $ translation = $ this -> translations -> first ( ) ; } return $ translation ; }
Get source or fallback to first found translation

@param string|null $locale
@return NodeSource
Get source or fallback to first found translation