Symfony\Component\Locale\Locale::getDisplayLocales
Returns the locale names for a locale
Signature
public function getDisplayLocales(string
$locale )
Parameters
$locale
— string- The locale to use for the locale names
Returns
- array
- The locale names with their codes as keys
Errors/Exceptions
-
RuntimeException
- When the resource bundles cannot be loaded