src/Cms/LocaleAwareTrait.php
protected function setLocales(array $locales)
    {
        $this->locales = [];
        foreach ($locales as $langCode => $localeStruct) {
            $this->locales[$langCode] = $this->parseLocale($localeStruct, $langCode);
        }

        return $this;
    }
protected function setLocales(array $locales)
    {
        $this->locales = [];
        foreach ($locales as $langCode => $localeStruct) {
            $this->locales[$langCode] = $this->parseLocale($localeStruct, $langCode);
        }

        return $this;
    }
protected function setLocales ( array $ locales ) { $ this -> locales = [ ] ; foreach ( $ locales as $ langCode => $ localeStruct ) { $ this -> locales [ $ langCode ] = $ this -> parseLocale ( $ localeStruct , $ langCode ) ; } return $ this ; }
Set the available locales.

@param  array $locales The list of language structures.
@return self
Set the available locales .