public function loadFromArray(array $locales)
    {
        $this->items = [];

        foreach ($locales as $key => $locale) {
            $this->put($key, Locale::make($key, $locale));
        }

        return $this;
    }
public function loadFromArray(array $locales)
    {
        $this->items = [];

        foreach ($locales as $key => $locale) {
            $this->put($key, Locale::make($key, $locale));
        }

        return $this;
    }
public function loadFromArray ( array $ locales ) { $ this -> items = [ ] ; foreach ( $ locales as $ key => $ locale ) { $ this -> put ( $ key , Locale :: make ( $ key , $ locale ) ) ; } return $ this ; }
Load locales from array.

@param  array  $locales

@return self
Load locales from array .