diff --git a/src/Twig/Components/Modal.php b/src/Twig/Components/Modal.php index 5fa5520..3c58a02 100644 --- a/src/Twig/Components/Modal.php +++ b/src/Twig/Components/Modal.php @@ -108,7 +108,7 @@ public function getContent(): ?string #[ExposeInTemplate] public function getActionLabel(): ?string { - return str_replace('-', ' ', $this->action ?? ''); + return $this->trans(ucfirst(str_replace('-', ' ', $this->action ?? ''))); } #[LiveAction] diff --git a/translations/FileManagerBundle.en.php b/translations/FileManagerBundle.en.php index 0e25656..68ed314 100644 --- a/translations/FileManagerBundle.en.php +++ b/translations/FileManagerBundle.en.php @@ -30,4 +30,8 @@ 'Delete' => 'Delete', 'Rename' => 'Rename', 'Move' => 'Move', + 'Create' => 'Create', + 'Delete folder' => 'Delete folder', + 'Delete file' => 'Delete file', + 'Upload' => 'Upload', ]; diff --git a/translations/FileManagerBundle.fr.php b/translations/FileManagerBundle.fr.php index c20176d..63b3e81 100644 --- a/translations/FileManagerBundle.fr.php +++ b/translations/FileManagerBundle.fr.php @@ -29,4 +29,8 @@ 'Delete' => 'Supprimer', 'Rename' => 'Renommer', 'Move' => 'Déplacer', + 'Create' => 'Créer', + 'Delete folder' => 'Supprimer le dossier', + 'Delete file' => 'Supprimer le fichier', + 'Upload' => 'Télécharger', ];