Symfony\Component\Locale\Locale::getFallbackLocale
Returns the fallback locale for a given locale, if any
Signature
protected function getFallbackLocale(string
$locale )
Parameters
$locale
— string- The locale to find the fallback for.
Returns
- string|null
- The fallback locale, or null if no parent exists