src/Viserio/Component/Translation/MessageCatalogue.php
public function get(string $id, string $domain = 'messages'): string
    {
        if (isset($this->messages[$domain][$id])) {
            return $this->messages[$domain][$id];
        }

        if ($this->fallbackCatalogue !== null) {
            return $this->fallbackCatalogue->get($id, $domain);
        }

        return $id;
    }
public function get(string $id, string $domain = 'messages'): string
    {
        if (isset($this->messages[$domain][$id])) {
            return $this->messages[$domain][$id];
        }

        if ($this->fallbackCatalogue !== null) {
            return $this->fallbackCatalogue->get($id, $domain);
        }

        return $id;
    }
{@inheritdoc}