src/i18n/Locale.php
public function getFallbackLocale(): self
    {
        if ($this->variant !== null) {
            return $this->withVariant(null);
        }

        if ($this->region !== null) {
            return $this->withRegion(null);
        }

        if ($this->script !== null) {
            return $this->withScript(null);
        }

        return $this;
    }
public function getFallbackLocale(): self
    {
        if ($this->variant !== null) {
            return $this->withVariant(null);
        }

        if ($this->region !== null) {
            return $this->withRegion(null);
        }

        if ($this->script !== null) {
            return $this->withScript(null);
        }

        return $this;
    }
public function getFallbackLocale ( ) : self { if ( $ this -> variant !== null ) { return $ this -> withVariant ( null ) ; } if ( $ this -> region !== null ) { return $ this -> withRegion ( null ) ; } if ( $ this -> script !== null ) { return $ this -> withScript ( null ) ; } return $ this ; }
Returns fallback locale

@return self fallback locale
Returns fallback locale