Symfony\Component\Intl\Locale\Locale::getPrimaryLanguage
Not supported. Returns the primary language for the locale
Signature
public function getPrimaryLanguage(string
$locale )
Parameters
$locale
— string- The locale code to extract the language code from
Returns
- string|null
- The extracted language code or null in case of error