app/I18N.php
public static function activeLocales(): array
    {
        $locales = app(ModuleService::class)
            ->findByInterface(ModuleLanguageInterface::class, false, true)
            ->map(static function (ModuleLanguageInterface $module): LocaleInterface {
                return $module->locale();
            });

        if ($locales->isEmpty()) {
            return [new LocaleEnUs()];
        }

        return $locales->all();
    }
public static function activeLocales(): array
    {
        $locales = app(ModuleService::class)
            ->findByInterface(ModuleLanguageInterface::class, false, true)
            ->map(static function (ModuleLanguageInterface $module): LocaleInterface {
                return $module->locale();
            });

        if ($locales->isEmpty()) {
            return [new LocaleEnUs()];
        }

        return $locales->all();
    }
public static function activeLocales ( ) : array { $ locales = app ( ModuleService :: class ) -> findByInterface ( ModuleLanguageInterface :: class , false , true ) -> map ( static function ( ModuleLanguageInterface $ module ) : LocaleInterface { return $ module -> locale ( ) ; } ) ; if ( $ locales -> isEmpty ( ) ) { return [ new LocaleEnUs ( ) ] ; } return $ locales -> all ( ) ; }
The preferred locales for this site, or a default list if no preference.

@return LocaleInterface[]
The preferred locales for this site or a default list if no preference .