public static function languageNames($codes = null)
    {
        $list = [];
        $codes = $codes ?: static::codes();
        foreach ($codes as $code) {
            $list[$code] = static::languageName($code);
        }

        return $list;
    }
public static function languageNames($codes = null)
    {
        $list = [];
        $codes = $codes ?: static::codes();
        foreach ($codes as $code) {
            $list[$code] = static::languageName($code);
        }

        return $list;
    }
public static function languageNames ( $ codes = null ) { $ list = [ ] ; $ codes = $ codes ? : static :: codes ( ) ; foreach ( $ codes as $ code ) { $ list [ $ code ] = static :: languageName ( $ code ) ; } return $ list ; }
Returns list of language names in the each language
@param string[]|null $codes the list of codes to get names, the empty value means all codes
@return array
Returns list of language names in the each language