$localeLanguageMap =
$this->
mapLocalesToLanguageId($locales);
foreach ($domains as $domain) { $fileId =
$this->
getFileIdByDomain($fileList,
$domain);
if (!
$fileId) { continue;
} foreach ($locales as $locale) { if ($locale !==
$this->defaultLocale
) { $response =
$this->
exportProjectTranslations($localeLanguageMap[$locale],
$fileId);
} else { $response =
$this->
downloadSourceFile($fileId);
} $responses[] =
[$response,
$locale,
$domain];
} } /* @var ResponseInterface $response */
$downloads =
[];
foreach ($responses as [$response,
$locale,
$domain]) {