You are here

public function DataCollectorTranslator::getCatalogue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/DataCollectorTranslator.php \Symfony\Component\Translation\DataCollectorTranslator::getCatalogue()

Gets the catalogue by locale.

Parameters

string|null $locale The locale or null to use the default:

Return value

MessageCatalogueInterface

Throws

\InvalidArgumentException If the locale contains invalid characters

Overrides TranslatorBagInterface::getCatalogue

File

vendor/symfony/translation/DataCollectorTranslator.php, line 86

Class

DataCollectorTranslator
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Translation

Code

public function getCatalogue($locale = null) {
  return $this->translator
    ->getCatalogue($locale);
}