src/Translatable.php
public function getOnlyTranslated()
    {
        if (!is_null($this->overrideOnlyTranslated)) {
            return $this->overrideOnlyTranslated;
        }

        if (property_exists($this, 'onlyTranslated')) {
            return $this->onlyTranslated;
        }

        return TranslatableConfig::onlyTranslated();
    }
public function getOnlyTranslated()
    {
        if (!is_null($this->overrideOnlyTranslated)) {
            return $this->overrideOnlyTranslated;
        }

        if (property_exists($this, 'onlyTranslated')) {
            return $this->onlyTranslated;
        }

        return TranslatableConfig::onlyTranslated();
    }
public function getOnlyTranslated ( ) { if ( ! is_null ( $ this -> overrideOnlyTranslated ) ) { return $ this -> overrideOnlyTranslated ; } if ( property_exists ( $ this , 'onlyTranslated' ) ) { return $ this -> onlyTranslated ; } return TranslatableConfig :: onlyTranslated ( ) ; }
Get current locale

@return bool
Get current locale