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)
        );
    }