src/Model/Locale.php
public static function getLocales($domain = null)
    {
        // Optionally filter by domain
        $domainObj = Domain::getByDomain($domain);
        if ($domainObj) {
            return $domainObj->getLocales();
        }

        return Locale::getCached();
    }
public static function getLocales($domain = null)
    {
        // Optionally filter by domain
        $domainObj = Domain::getByDomain($domain);
        if ($domainObj) {
            return $domainObj->getLocales();
        }

        return Locale::getCached();
    }
public static function getLocales ( $ domain = null ) { // Optionally filter by domain $ domainObj = Domain :: getByDomain ( $ domain ) ; if ( $ domainObj ) { return $ domainObj -> getLocales ( ) ; } return Locale :: getCached ( ) ; }
Get available locales

@param string|null|true $domain If provided, locales for the given domain will be returned.
If true, then the current state domain will be used (if in domain mode).
@return ArrayList
Get available locales