public function getFieldCaption(string $name): string
    {
        $caption = $this->getFieldProperty($name, 'caption');

        if ($caption) {
            return $this->translate($caption);
        }

        return $name;
    }