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