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