public function viewAction(Language $language): Response
    {
        $deleteForm = $this->formFactory->deleteLanguage(
            new LanguageDeleteData($language)
        );

        return $this->render('@ezdesign/admin/language/view.html.twig', [
            'language' => $language,
            'deleteForm' => $deleteForm->createView(),
            /* @deprecated since version 2.2, to be removed in 3.0. Use 'can_administrate' instead. */
            'canEdit' => $this->isGranted(new Attribute('content', 'translations')),
            /* @deprecated since version 2.2, to be removed in 3.0. Use 'can_administrate' instead. */
            'canAssign' => $this->isGranted(new Attribute('content', 'translations')),
            'can_administrate' => $this->isGranted(new Attribute('content', 'translations')),
        ]);
    }