$io->
success(sprintf('Missing translations on "%s" has been deleted (for "%s" locale(s), and "%s" domain(s)).',
parse_url($provider, \PHP_URL_SCHEME
),
implode(', ',
$locales),
implode(', ',
$domains)));
// Read provider translations again, after missing translations deletion,
// to avoid push freshly deleted translations.
$providerTranslations =
$provider->
read($domains,
$locales);
} $translationsToWrite =
$localTranslations->
diff($providerTranslations);
if ($force) { $translationsToWrite->
addBag($localTranslations->
intersect($providerTranslations));
} $provider->
write($translationsToWrite);
$io->
success(sprintf('%s local translations has been sent to "%s" (for "%s" locale(s), and "%s" domain(s)).',
$force ? 'All' : 'New',
parse_url($provider, \PHP_URL_SCHEME
),
implode(', ',
$locales),
implode(', ',
$domains)));
return 0;
} private function getDomainsFromTranslatorBag(TranslatorBag
$translatorBag): array
{