code: public function getCatalogue($locale = null)
      {
          if ($this->translator instanceof TranslatorBagInterface) {
              return $this->translator->getCatalogue($locale);
          }
  
          return null;
      }
docs: Gets the catalogue by locale.
  
  @param string|null $locale The locale or null to use the default
  
  @return MessageCatalogueInterface
  
  @throws InvalidArgumentException If the locale contains invalid characters