From 2cb2ce16efacf8919e000026995a446b03b12820 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 17 Sep 2024 12:56:50 +0200 Subject: [PATCH] fix: refs #7353 locale --- src/pages/Monitor/Ticket/MonitorTicketFilter.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index 2d48bd44e..57248d580 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -28,8 +28,9 @@ const handleScopeDays = (params, days, callback) => { }; const getLocale = (label) => { - const globalLocale = `globals.params.${label}`; - return te(globalLocale) ? t(globalLocale) : t(`params.${label}`); + const param = label.split('.').at(-1); + const globalLocale = `globals.params.${param}`; + return te(globalLocale) ? t(globalLocale) : t(`params.${param}`); };