Skip to content

Commit

Permalink
fix: add missing translation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbousquet committed May 14, 2024
1 parent da9319c commit aab5282
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/permission/permission.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class PermissionComponent implements OnInit {
if (result) {
this.managerService.deletePermission(permId).subscribe({
next: () => {
this.toastr.success('Permission deleted');
this.toastr.success(this.translate.instant('Permission deleted'));
this.showPerms();
},
error: () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/role/role.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class RoleComponent implements OnInit {
if (result) {
this.managerService.deleteGroup(roleId).subscribe({
next: () => {
this.toastr.success('Group deleted');
this.toastr.success(this.translate.instant('Group deleted'));
this.showGroups();
},
error: () => {
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"Permission not updated": "Permission not updated",
"Create a permission": "Create a permission",
"Update a permission": "Update a permission",
"Permission deleted": "Permission deleted",
"Error during permission deletion": "Error during permission deletion",
"Delete permission": "Delete permission",
"You will delete the permission:": "You will delete the permission",
Expand All @@ -62,6 +63,7 @@
"Group not updated": "Group not updated",
"Create a group": "Create a group",
"Update a group": "Update a group",
"Group deleted": "Group deleted",
"Error during group deletion": "Error during group deletion",
"Delete group": "Delete group",
"You will delete the group:": "You will delete the group",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"Permission not updated": "Permission non modifiée",
"Create a permission": "Créer une permission",
"Update a permission": "Modifier une permission",
"Permission deleted": "Permission supprimée",
"Error during permission deletion": "Erreur lors de la suppression de la permission",
"Delete permission": "Supprimer une permission",
"You will delete the permission:": "Vous êtes sur le point de supprimer la permission : ",
Expand All @@ -62,6 +63,7 @@
"Group not updated": "Groupe non modifié",
"Create a group": "Créer un groupe",
"Update a group": "Modifier un groupe",
"Group deleted": "Groupe supprimé",
"Error during group deletion": "Erreur lors de la suppression d'un groupe'",
"Delete group": "Supprimer un groupe",
"You will delete the group:": "Vous êtes sur le point de supprimer le groupe : ",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"Permission not updated": "Permission not updated",
"Create a permission": "Create a permission",
"Update a permission": "Update a permission",
"Permission deleted": "Permission deleted",
"Error during permission deletion": "Error during permission deletion",
"Delete permission": "Delete permission",
"You will delete the permission:": "You will delete the permission:",
Expand All @@ -62,6 +63,7 @@
"Group not updated": "Group not updated",
"Create a group": "Create a group",
"Update a group": "Update a group",
"Group deleted": "Group deleted",
"Error during group deletion": "Error during group deletion",
"Delete group": "Delete group",
"You will delete the group:": "You will delete the group:",
Expand Down

0 comments on commit aab5282

Please sign in to comment.