LanguagePrefix::get_locale_from_prefix
return the $locale based on the language prefix. If no locale is given, the default Translatable locale is assumed.
Signature
public function get_locale_from_prefix([string
$prefix = ''] )
Parameters
$prefix
— string
Returns
- string
- locale