app/Services/ModuleService.php
public function setupLanguages(): Collection
    {
        return $this->coreModules()
            ->filter(static function (ModuleInterface $module) {
                return $module instanceof ModuleLanguageInterface && $module->isEnabledByDefault();
            })
            ->sort(static function (ModuleLanguageInterface $x, ModuleLanguageInterface $y) {
                return $x->locale()->endonymSortable() <=> $y->locale()->endonymSortable();
            });
    }
public function setupLanguages(): Collection
    {
        return $this->coreModules()
            ->filter(static function (ModuleInterface $module) {
                return $module instanceof ModuleLanguageInterface && $module->isEnabledByDefault();
            })
            ->sort(static function (ModuleLanguageInterface $x, ModuleLanguageInterface $y) {
                return $x->locale()->endonymSortable() <=> $y->locale()->endonymSortable();
            });
    }
public function setupLanguages ( ) : Collection { return $ this -> coreModules ( ) -> filter ( static function ( ModuleInterface $ module ) { return $ module instanceof ModuleLanguageInterface && $ module -> isEnabledByDefault ( ) ; } ) -> sort ( static function ( ModuleLanguageInterface $ x , ModuleLanguageInterface $ y ) { return $ x -> locale ( ) -> endonymSortable ( ) <=> $ y -> locale ( ) -> endonymSortable ( ) ; } ) ; }
During setup, we'll need access to some languages.

@return Collection
During setup we ll need access to some languages .