public static function getDisplayLanguages($locale)
    {
        if (!isset(self::$languages[$locale])) {
            self::$languages[$locale] = Intl::getLanguageBundle()->getLanguageNames($locale);
        }

        return self::$languages[$locale];
    }
public static function getDisplayLanguages($locale)
    {
        if (!isset(self::$languages[$locale])) {
            self::$languages[$locale] = Intl::getLanguageBundle()->getLanguageNames($locale);
        }

        return self::$languages[$locale];
    }
public static function getDisplayLanguages ( $ locale ) { if ( ! isset ( self :: $ languages [ $ locale ] ) ) { self :: $ languages [ $ locale ] = Intl :: getLanguageBundle ( ) -> getLanguageNames ( $ locale ) ; } return self :: $ languages [ $ locale ] ; }
Returns the language names for a locale.

@param string $locale The locale to use for the language names

@return array The language names with their codes as keys

@throws \RuntimeException When the resource bundles cannot be loaded
Returns the language names for a locale .