Skip to content

Commit

Permalink
Add missing action translations
Browse files Browse the repository at this point in the history
  • Loading branch information
loicsapone committed Aug 12, 2024
1 parent 9cfe65b commit 1f56693
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/Components/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions translations/FileManagerBundle.en.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@
'Delete' => 'Delete',
'Rename' => 'Rename',
'Move' => 'Move',
'Create' => 'Create',
'Delete folder' => 'Delete folder',
'Delete file' => 'Delete file',
'Upload' => 'Upload',
];
4 changes: 4 additions & 0 deletions translations/FileManagerBundle.fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

0 comments on commit 1f56693

Please sign in to comment.