Skip to content

Commit

Permalink
Let code "breath" a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
snpy committed Nov 24, 2022
1 parent c3dbe3b commit ee0cc66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Service/Importer.php
Expand Up @@ -115,6 +115,7 @@ public function extractToCatalogues(Finder $finder, array $catalogues, array $co
}
}
}

foreach ($merge->getObsoleteMessages($domain) as $key => $translation) {
$messageDomain = array_key_exists($key, $resultMessages[$intlDomain] ?? []) ? $intlDomain : $domain;

Expand All @@ -140,6 +141,7 @@ private function convertSourceLocationsToMessages(
foreach ($collection as $sourceLocation) {
$context = $sourceLocation->getContext();
$domain = $context['domain'] ?? 'messages';

// Check with white/black list
if (!$this->isValidDomain($domain)) {
continue;
Expand Down

0 comments on commit ee0cc66

Please sign in to comment.