protected function getLocales()
    {
        return \localizer\locales()->reduce(function ($ids, $locale) {
            $ids[] = $locale->id();

            return $ids;
        }, []);
    }
protected function getLocales()
    {
        return \localizer\locales()->reduce(function ($ids, $locale) {
            $ids[] = $locale->id();

            return $ids;
        }, []);
    }
protected function getLocales ( ) { return \ localizer \ locales ( ) -> reduce ( function ( $ ids , $ locale ) { $ ids [ ] = $ locale -> id ( ) ; return $ ids ; } , [ ] ) ; }
Get list of all available locales

@return array
@throws LocalesNotDefinedException
Get list of all available locales