src/Dispatch/VirtualHost.php
public function setLocale($locale)
    {
        $locale = WF::cast_array($locale);
        foreach ($locale as $l)
            $this->locales[] = new Locale($l);

        // Remove duplicate locales
        $this->locales = array_unique($this->locales);
        return $this;
    }
public function setLocale($locale)
    {
        $locale = WF::cast_array($locale);
        foreach ($locale as $l)
            $this->locales[] = new Locale($l);

        // Remove duplicate locales
        $this->locales = array_unique($this->locales);
        return $this;
    }
Set the locales supported by this VirtualHost.
@param mixed $locale Can be one locale or an array of locales
@return Wedeto\Application\VirtualHost Provides fluent interface