diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index 3c95f5cdd..57248d580 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -11,7 +11,7 @@ import FetchData from 'src/components/FetchData.vue'; import { dateRange } from 'src/filters'; defineProps({ dataKey: { type: String, required: true } }); -const { t } = useI18n(); +const { t, te } = useI18n(); const warehouses = ref(); const groupedStates = ref(); @@ -26,6 +26,12 @@ const handleScopeDays = (params, days, callback) => { } if (callback) callback(); }; + +const getLocale = (label) => { + const param = label.split('.').at(-1); + const globalLocale = `globals.params.${param}`; + return te(globalLocale) ? t(globalLocale) : t(`params.${param}`); +};