protected function trans(string $key, string $member, array $replace = [], ?string $locale = null)
    {
        return $this->translator->trans(
            "jsonapi::errors.{$key}.{$member}",
            $replace,
            $locale
        ) ?: null;
    }