Skip to content

Commit

Permalink
refactor: rename slash event language
Browse files Browse the repository at this point in the history
Adapt language config keys for notification slash events to match the event type strings.
  • Loading branch information
LuccaBitfly committed Oct 8, 2024
1 parent d33036f commit 399c481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/components/notifications/DashboardsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const mapEventtypeToText = (eventType: NotificationDashboardsTableRow['event_typ
case 'transfer_erc1155':
return $t('notifications.dashboards.event_type.transfer_erc1155')
case 'validator_got_slashed':
return $t('notifications.dashboards.event_type.got_slashed')
return $t('notifications.dashboards.event_type.validator_got_slashed')
case 'validator_has_slashed':
return $t('notifications.dashboards.event_type.has_slashed')
return $t('notifications.dashboards.event_type.validator_has_slashed')
case 'validator_offline':
return $t('notifications.dashboards.event_type.validator_offline')
case 'validator_online':
Expand Down
4 changes: 2 additions & 2 deletions frontend/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,8 @@
},
"event_type": {
"attestation_missed": "Attestation missed",
"got_slashed": "Got slashed",
"group_offline": "Group offline",
"group_online": "Group online",
"has_slashed": "Slashing",
"incoming_tx": "Incoming Tx.",
"max_collateral": "Max. collateral",
"min_collateral": "Min. collateral",
Expand All @@ -648,6 +646,8 @@
"transfer_erc20": "Transfer ERC-20",
"transfer_erc721": "Transfer ERC-721",
"transfer_erc1155": "Transfer ERC-1155",
"validator_got_slashed": "Got slashed",
"validator_has_slashed": "Slashing",
"validator_offline": "Validator offline",
"validator_online": "Validator online",
"withdrawal": "Withdrawal"
Expand Down

0 comments on commit 399c481

Please sign in to comment.