protected function makeLocale($httpAcceptLanguage)
    {
        $parts = $this->split($httpAcceptLanguage, ';');

        $locale = $parts[0];
        $weight = $parts[1] ?? null;

        if (empty($locale)) {
            return;
        }

        $this->locales[] = new Locale(
            $locale,
            $this->getLanguage($locale),
            $this->getCountry($locale),
            $this->getWeight($weight)
        );
    }
protected function makeLocale($httpAcceptLanguage)
    {
        $parts = $this->split($httpAcceptLanguage, ';');

        $locale = $parts[0];
        $weight = $parts[1] ?? null;

        if (empty($locale)) {
            return;
        }

        $this->locales[] = new Locale(
            $locale,
            $this->getLanguage($locale),
            $this->getCountry($locale),
            $this->getWeight($weight)
        );
    }
protected function makeLocale ( $ httpAcceptLanguage ) { $ parts = $ this -> split ( $ httpAcceptLanguage , ';' ) ; $ locale = $ parts [ 0 ] ; $ weight = $ parts [ 1 ] ?? null ; if ( empty ( $ locale ) ) { return ; } $ this -> locales [ ] = new Locale ( $ locale , $ this -> getLanguage ( $ locale ) , $ this -> getCountry ( $ locale ) , $ this -> getWeight ( $ weight ) ) ; }
Convert the given HTTP Accept Language to a Locale object.

@param string $httpAcceptLanguage

@return void
Convert the given HTTP Accept Language to a Locale object .