i18n/BaseLangHelper.php
public static function findLanguageByCode2($langCode2)
    {
        $langList = static::activeLanguagesArray();
        foreach ($langList as $lang) {
            if ($lang['code2'] == $langCode2) return $lang;
        }
        return false;
    }
public static function findLanguageByCode2($langCode2)
    {
        $langList = static::activeLanguagesArray();
        foreach ($langList as $lang) {
            if ($lang['code2'] == $langCode2) return $lang;
        }
        return false;
    }
public static function findLanguageByCode2 ( $ langCode2 ) { $ langList = static :: activeLanguagesArray ( ) ; foreach ( $ langList as $ lang ) { if ( $ lang [ 'code2' ] == $ langCode2 ) return $ lang ; } return false ; }
Find language by 2-symbols language code
@param string 2-symbols language code
@return Lang|false object
Find language by 2 - symbols language code