public function getCatalogue(string
$locale = null
): MessageCatalogueInterface
{ if (!
$locale) { $locale =
$this->
getLocale();
} else { $this->
assertValidLocale($locale);
} if (!
isset($this->catalogues
[$locale])) { $this->
loadCatalogue($locale);
} return $this->catalogues
[$locale];
} public function getCatalogues(): array
{ return array_values($this->catalogues
);
} /**
* Gets the loaders.
*
* @return LoaderInterface[]
*/