public function trans($value, array $parameters = [], $domain = null, $locale = null)
    {
        $domain = true === $domain ? 'messages' : $domain;

        if ($this->isString($value) && $this->isString($domain)) {
            $value = $this->translator->trans($value, $parameters, $domain, $locale);
        }

        return $value;
    }