FinderIndexerHelper::getPrimaryLanguage
Method to parse a language/locale key and return a simple language string.
Signature
public function getPrimaryLanguage(string
$langĀ )
Parameters
-
$lang
- The language/locale key. For example: en-GB
Returns
- string
- The simple language string. For example: en