src/Viserio/Component/Translation/MessageCatalogue.php
public function addCatalogue(MessageCatalogueContract $catalogue): void
    {
        if ($catalogue->getLocale() !== $this->locale) {
            throw new LogicException(\sprintf(
                'Cannot add a catalogue for locale [%s] as the current locale for this catalogue is [%s].',
                $catalogue->getLocale(),
                $this->locale
            ));
        }

        foreach ($catalogue->getAll() as $domain => $messages) {
            $this->add($messages, $domain);
        }
    }
public function addCatalogue(MessageCatalogueContract $catalogue): void
    {
        if ($catalogue->getLocale() !== $this->locale) {
            throw new LogicException(\sprintf(
                'Cannot add a catalogue for locale [%s] as the current locale for this catalogue is [%s].',
                $catalogue->getLocale(),
                $this->locale
            ));
        }

        foreach ($catalogue->getAll() as $domain => $messages) {
            $this->add($messages, $domain);
        }
    }
{@inheritdoc}