return $currentCatalogue;
} /**
* @return MessageCatalogue[]
*/
private function loadFallbackCatalogues(string
$locale, array
$transPaths): array
{ $fallbackCatalogues =
[];
if ($this->translator instanceof Translator ||
$this->translator instanceof DataCollectorTranslator ||
$this->translator instanceof LoggingTranslator
) { foreach ($this->translator->
getFallbackLocales() as $fallbackLocale) { if ($fallbackLocale ===
$locale) { continue;
} $fallbackCatalogue =
new MessageCatalogue($fallbackLocale);
foreach ($transPaths as $path) { if (is_dir($path)) { $this->reader->
read($path,
$fallbackCatalogue);
} } $fallbackCatalogues[] =
$fallbackCatalogue;
}