src/Viserio/Component/Parser/Parser/PoParser.php
private static function processPreviousEntry(
        ?string $lastPreviousKey,
        ?string $tmpKey,
        string $str,
        array $entry,
        string $key
    ): array {
        switch ($tmpKey) {
            case 'msgid':
            case 'msgid_plural':
            case 'msgstr':
                $entry[$key][$tmpKey][] = self::convertString($str);
                $lastPreviousKey        = $tmpKey;

                break;

            default:
                $entry[$key][$tmpKey] = self::convertString($str);

                break;
        }

        return [$entry, $lastPreviousKey];
    }
private static function processPreviousEntry(
        ?string $lastPreviousKey,
        ?string $tmpKey,
        string $str,
        array $entry,
        string $key
    ): array {
        switch ($tmpKey) {
            case 'msgid':
            case 'msgid_plural':
            case 'msgstr':
                $entry[$key][$tmpKey][] = self::convertString($str);
                $lastPreviousKey        = $tmpKey;

                break;

            default:
                $entry[$key][$tmpKey] = self::convertString($str);

                break;
        }

        return [$entry, $lastPreviousKey];
    }
Export previous entries.

@param null|string $lastPreviousKey
@param null|string $tmpKey
@param string      $str
@param array       $entry
@param string      $key

@return array