src/Leevel/I18n/Po.php
public function read(array $filenames): array
    {
        $translations = new Translations();

        foreach ($filenames as $val) {
            $translations->addFromPoFile($val);
        }

        $result = json_decode($translations->toJsonString(), true);
        $result = $result['messages'][''] ?? [];

        $result = array_map(function ($item) {
            return $item[0];
        }, $result);

        return $result;
    }
public function read(array $filenames): array
    {
        $translations = new Translations();

        foreach ($filenames as $val) {
            $translations->addFromPoFile($val);
        }

        $result = json_decode($translations->toJsonString(), true);
        $result = $result['messages'][''] ?? [];

        $result = array_map(function ($item) {
            return $item[0];
        }, $result);

        return $result;
    }
读取文件数据.

@param array $filenames

@return array