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