private function getArea($template, $area, $locales, $templateTitles)
    {
        $key = $area['key'];

        $titles = [];

        foreach ($locales as $locale) {
            $title = $templateTitles[$locale] . ' ' . ucfirst($key);
            if (isset($area['title'][$locale])) {
                $title = $area['title'][$locale];
            }

            $titles[$locale] = $title;
        }

        return [
            'key' => $key,
            'template' => $template,
            'title' => $titles,
        ];
    }