public function addResourcePath($domain, $path) {
        $code = $this->getCode();

        $this->getLocaleBundle()->addPath($domain, sprintf('%s/locales/%s', $path, $code));

        $this->getMessageBundle()->addPaths($domain, [
            sprintf('%s/messages/%s', $path, $code),
            sprintf('%s/messages/%s/LC_MESSAGES', $path, $code) // gettext
        ]);

        return $this;
    }