public static function localeNames($codes, $in_code = null)
    {
        $list = [];
        $codes = $codes ?: static::codes();
        foreach ($codes as $code) {
            $list[$code] = static::localeName($code, $in_code);
        }

        return $list;
    }
public static function localeNames($codes, $in_code = null)
    {
        $list = [];
        $codes = $codes ?: static::codes();
        foreach ($codes as $code) {
            $list[$code] = static::localeName($code, $in_code);
        }

        return $list;
    }
public static function localeNames ( $ codes , $ in_code = null ) { $ list = [ ] ; $ codes = $ codes ? : static :: codes ( ) ; foreach ( $ codes as $ code ) { $ list [ $ code ] = static :: localeName ( $ code , $ in_code ) ; } return $ list ; }
Returns list of locale language names in a locale
@param string[]|null $codes the list of codes to get names, the empty value means all codes
@param string|null $in_code optional format locale code
@return array
Returns list of locale language names in a locale