code: public function load($resource, $locale, $domain = 'messages')
      {
          $catalogue = new MessageCatalogue($locale);
          try {
              foreach ($this->content->buildEntries($this->contentType, $locale) as $string) {
                  $value = isset($string->value) ? $string->value : '';
                  $v     = $locale == $this->keyLocale ? $string->code : $value;
                  $catalogue->set($string->code, $v, $domain);
              }
          } catch (InvalidArgumentException $e) {
              // pass.
          }
          return $catalogue;
      }
docs: {@inheritdoc}