src/helpers/ExtensionDataHelper.php
public static function getLocalizedVersionedDataField($data, $type, $field)
    {
        $string = '';
        $langId = Yii::$app->language;
        if (false === empty($data['package']['versions'][self::$currentVersion]['extra'][$type][$field . '_' . $langId])) {
            $string = $data['package']['versions'][self::$currentVersion]['extra'][$type][$field . '_' . $langId];
        } elseif (false === empty($data['package']['versions'][self::$currentVersion]['extra'][$type][$field])) {
            $string = $data['package']['versions'][self::$currentVersion]['extra'][$type][$field];
        } elseif (false === empty($data['package']['versions'][self::$currentVersion][$field])) {
            $string = $data['package']['versions'][self::$currentVersion][$field];
        } elseif (false === empty($data['package'][$field])) {
            $string = $data['package'][$field];
        }
        return $string;
    }
public static function getLocalizedVersionedDataField($data, $type, $field)
    {
        $string = '';
        $langId = Yii::$app->language;
        if (false === empty($data['package']['versions'][self::$currentVersion]['extra'][$type][$field . '_' . $langId])) {
            $string = $data['package']['versions'][self::$currentVersion]['extra'][$type][$field . '_' . $langId];
        } elseif (false === empty($data['package']['versions'][self::$currentVersion]['extra'][$type][$field])) {
            $string = $data['package']['versions'][self::$currentVersion]['extra'][$type][$field];
        } elseif (false === empty($data['package']['versions'][self::$currentVersion][$field])) {
            $string = $data['package']['versions'][self::$currentVersion][$field];
        } elseif (false === empty($data['package'][$field])) {
            $string = $data['package'][$field];
        }
        return $string;
    }
Fetching localized data from defined field according to package current version
@param $data
@param $type
@param string $field
@return string