classes/LocaleManager.php
public function getSupportedLocales()
    {
        $return = [];
        $process = new Process(['locale', '-a']);
        $process->run();
        $installedLocales = explode(PHP_EOL, trim($process->getOutput()));
        foreach ($this->supportedLocales as $supportedLocale) {
            if (in_array($supportedLocale, $installedLocales)
                || in_array($supportedLocale.'.utf8', $installedLocales)
            ) {
                $return[] = new Locale($supportedLocale);
            }
        }

        return $return;
    }
public function getSupportedLocales()
    {
        $return = [];
        $process = new Process(['locale', '-a']);
        $process->run();
        $installedLocales = explode(PHP_EOL, trim($process->getOutput()));
        foreach ($this->supportedLocales as $supportedLocale) {
            if (in_array($supportedLocale, $installedLocales)
                || in_array($supportedLocale.'.utf8', $installedLocales)
            ) {
                $return[] = new Locale($supportedLocale);
            }
        }

        return $return;
    }
public function getSupportedLocales ( ) { $ return = [ ] ; $ process = new Process ( [ 'locale' , '-a' ] ) ; $ process -> run ( ) ; $ installedLocales = explode ( PHP_EOL , trim ( $ process -> getOutput ( ) ) ) ; foreach ( $ this -> supportedLocales as $ supportedLocale ) { if ( in_array ( $ supportedLocale , $ installedLocales ) || in_array ( $ supportedLocale . '.utf8' , $ installedLocales ) ) { $ return [ ] = new Locale ( $ supportedLocale ) ; } } return $ return ; }
Get a list of supported locales.

@return Locale[]
Get a list of supported locales .