From 050c502c8e167e8fc2a764a86aedec7e6d15ecd9 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Mon, 29 Dec 2025 11:17:47 +0530 Subject: [PATCH] add localized labels for activity log types in useActivityLogFilters add missing activity log types in filters --- .../src/composables/useActivityLogFilters.js | 16 +++++++++++----- i18n/en.json | 7 +++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/frontend/src/composables/useActivityLogFilters.js b/frontend/src/composables/useActivityLogFilters.js index 5ee401ef..51c7c1c3 100644 --- a/frontend/src/composables/useActivityLogFilters.js +++ b/frontend/src/composables/useActivityLogFilters.js @@ -20,20 +20,26 @@ export function useActivityLogFilters () { type: FIELD_TYPE.SELECT, operators: FIELD_OPERATORS.SELECT, options: [{ - label: 'Agent login', + label: t('activityLog.type.agentLogin'), value: 'agent_login' }, { - label: 'Agent logout', + label: t('activityLog.type.agentLogout'), value: 'agent_logout' }, { - label: 'Agent away', + label: t('activityLog.type.agentAway'), value: 'agent_away' }, { - label: 'Agent away reassigned', + label: t('activityLog.type.agentAwayReassigned'), value: 'agent_away_reassigned' }, { - label: 'Agent online', + label: t('activityLog.type.agentOnline'), value: 'agent_online' + }, { + label: t('activityLog.type.agentPasswordSet'), + value: 'agent_password_set' + }, { + label: t('activityLog.type.agentRolePermissionsChanged'), + value: 'agent_role_permissions_changed' }] }, })) diff --git a/i18n/en.json b/i18n/en.json index 5d8c13a0..511b2796 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -21,6 +21,13 @@ "globals.terms.actor": "Actor | Actors", "globals.terms.page": "Page | Pages", "globals.terms.activityLog": "Activity log | Activity logs", + "activityLog.type.agentLogin": "Agent login", + "activityLog.type.agentLogout": "Agent logout", + "activityLog.type.agentAway": "Agent away", + "activityLog.type.agentAwayReassigned": "Agent away reassigned", + "activityLog.type.agentOnline": "Agent online", + "activityLog.type.agentPasswordSet": "Agent password set", + "activityLog.type.agentRolePermissionsChanged": "Agent role permissions changed", "globals.terms.name": "Name | Names", "globals.terms.image": "Image | Images", "globals.terms.thumbnail": "Thumbnail | Thumbnails",