app/I18N.php
public static function installedLocales(): Collection
    {
        return app(ModuleService::class)
            ->findByInterface(ModuleLanguageInterface::class, true)
            ->map(static function (ModuleLanguageInterface $module): LocaleInterface {
                return $module->locale();
            });
    }
public static function installedLocales(): Collection
    {
        return app(ModuleService::class)
            ->findByInterface(ModuleLanguageInterface::class, true)
            ->map(static function (ModuleLanguageInterface $module): LocaleInterface {
                return $module->locale();
            });
    }
public static function installedLocales ( ) : Collection { return app ( ModuleService :: class ) -> findByInterface ( ModuleLanguageInterface :: class , true ) -> map ( static function ( ModuleLanguageInterface $ module ) : LocaleInterface { return $ module -> locale ( ) ; } ) ; }
All locales for which a translation file exists.

@return Collection
@return LocaleInterface[]
All locales for which a translation file exists .