public static function getDisplayLocales($locale)
    {
        if (!isset(self::$locales[$locale])) {
            self::$locales[$locale] = Intl::getLocaleBundle()->getLocaleNames($locale);
        }

        return self::$locales[$locale];
    }
public static function getDisplayLocales($locale)
    {
        if (!isset(self::$locales[$locale])) {
            self::$locales[$locale] = Intl::getLocaleBundle()->getLocaleNames($locale);
        }

        return self::$locales[$locale];
    }
public static function getDisplayLocales ( $ locale ) { if ( ! isset ( self :: $ locales [ $ locale ] ) ) { self :: $ locales [ $ locale ] = Intl :: getLocaleBundle ( ) -> getLocaleNames ( $ locale ) ; } return self :: $ locales [ $ locale ] ; }
Returns the locale names for a locale.

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

@return array The locale names with their codes as keys

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