From 99ca54fd3cf58ebd58fbca6d2b96542d1238ef77 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sun, 27 Sep 2020 18:56:52 +0530 Subject: [PATCH] fix: Remove keys for reports from translation file (#1279) --- .../dashboard/i18n/locale/ar/report.json | 22 ++++------ .../dashboard/i18n/locale/ca/report.json | 22 ++++------ .../dashboard/i18n/locale/cs/report.json | 22 ++++------ .../dashboard/i18n/locale/da/report.json | 22 ++++------ .../dashboard/i18n/locale/de/report.json | 22 ++++------ .../dashboard/i18n/locale/el/report.json | 22 ++++------ .../dashboard/i18n/locale/en/report.json | 44 ++++++++++++++----- .../dashboard/i18n/locale/es/report.json | 22 ++++------ .../dashboard/i18n/locale/fa/report.json | 22 ++++------ .../dashboard/i18n/locale/fi/report.json | 22 ++++------ .../dashboard/i18n/locale/fr/report.json | 22 ++++------ .../dashboard/i18n/locale/hi/report.json | 22 ++++------ .../dashboard/i18n/locale/hu/report.json | 22 ++++------ .../dashboard/i18n/locale/it/report.json | 22 ++++------ .../dashboard/i18n/locale/ja/report.json | 22 ++++------ .../dashboard/i18n/locale/ko/report.json | 22 ++++------ .../dashboard/i18n/locale/ml/report.json | 22 ++++------ .../dashboard/i18n/locale/nl/report.json | 22 ++++------ .../dashboard/i18n/locale/pl/report.json | 22 ++++------ .../dashboard/i18n/locale/pt/report.json | 22 ++++------ .../dashboard/i18n/locale/pt_BR/report.json | 22 ++++------ .../dashboard/i18n/locale/ro/report.json | 22 ++++------ .../dashboard/i18n/locale/ru/report.json | 22 ++++------ .../dashboard/i18n/locale/sk/report.json | 22 ++++------ .../dashboard/i18n/locale/sv/report.json | 22 ++++------ .../dashboard/i18n/locale/ta/report.json | 22 ++++------ .../dashboard/i18n/locale/th/report.json | 22 ++++------ .../dashboard/i18n/locale/tr/report.json | 22 ++++------ .../dashboard/i18n/locale/uk/report.json | 22 ++++------ .../dashboard/i18n/locale/vi/report.json | 22 ++++------ .../dashboard/i18n/locale/zh/report.json | 22 ++++------ .../dashboard/i18n/locale/zh_CN/report.json | 22 ++++------ .../dashboard/i18n/locale/zh_TW/report.json | 22 ++++------ .../dashboard/settings/reports/Index.vue | 23 +++++++++- 34 files changed, 312 insertions(+), 459 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/ar/report.json b/app/javascript/dashboard/i18n/locale/ar/report.json index abbb4030a..2ad11e009 100644 --- a/app/javascript/dashboard/i18n/locale/ar/report.json +++ b/app/javascript/dashboard/i18n/locale/ar/report.json @@ -3,38 +3,32 @@ "HEADER": "التقارير", "LOADING_CHART": "تحميل بيانات الرسم البياني...", "NO_ENOUGH_DATA": "لم يتم جمع بيانات بقدر كافي لإنشاء التقرير، الرجاء المحاولة مرة أخرى لاحقاً.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "المحادثات", - "KEY": "conversations_count", "DESC": "(الإجمالي)" }, - { + "INCOMING_MESSAGES": { "NAME": "الرسائل الواردة", - "KEY": "incoming_messages_count", "DESC": "(الإجمالي)" }, - { + "OUTGOING_MESSAGES": { "NAME": "الرسائل الصادرة", - "KEY": "outgoing_messages_count", "DESC": "(الإجمالي)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "وقت الاستجابة الأولى", - "KEY": "avg_first_response_time", "DESC": "(متوسط)" }, - { + "RESOLUTION_TIME": { "NAME": "وقت إغلاق المحادثات", - "KEY": "avg_resolution_time", "DESC": "(متوسط)" }, - { + "RESOLUTION_COUNT": { "NAME": "عدد مرات الإغلاق", - "KEY": "resolutions_count", "DESC": "(الإجمالي)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ca/report.json b/app/javascript/dashboard/i18n/locale/ca/report.json index 2ed8f5211..ab2c94e8b 100644 --- a/app/javascript/dashboard/i18n/locale/ca/report.json +++ b/app/javascript/dashboard/i18n/locale/ca/report.json @@ -3,38 +3,32 @@ "HEADER": "Informes", "LOADING_CHART": "S'estan carregant dades del gràfic...", "NO_ENOUGH_DATA": "No hem rebut suficients punts de dades per generar l'informe. Torneu-ho a provar més endavant.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Converses", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Missatges d'entrada", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Missatges de sortida", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Primer temps de resposta", - "KEY": "avg_first_response_time", "DESC": "( Promig )" }, - { + "RESOLUTION_TIME": { "NAME": "Temps de resolució", - "KEY": "avg_resolution_time", "DESC": "( Promig )" }, - { + "RESOLUTION_COUNT": { "NAME": "Total de resolucions", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/cs/report.json b/app/javascript/dashboard/i18n/locale/cs/report.json index 17b316f92..dc684dd37 100644 --- a/app/javascript/dashboard/i18n/locale/cs/report.json +++ b/app/javascript/dashboard/i18n/locale/cs/report.json @@ -3,38 +3,32 @@ "HEADER": "Zprávy", "LOADING_CHART": "Načítání dat mapy...", "NO_ENOUGH_DATA": "Pro vytvoření hlášení jsme neobdrželi dostatek dat, zkuste to prosím později.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Konverzace", - "KEY": "conversations_count", "DESC": "( celkem)" }, - { + "INCOMING_MESSAGES": { "NAME": "Příchozí zprávy", - "KEY": "incoming_messages_count", "DESC": "( celkem)" }, - { + "OUTGOING_MESSAGES": { "NAME": "Odchozí zprávy", - "KEY": "outgoing_messages_count", "DESC": "( celkem)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Čas první odpovědi", - "KEY": "avg_first_response_time", "DESC": "(Průměrný)" }, - { + "RESOLUTION_TIME": { "NAME": "Čas rozlišení", - "KEY": "avg_resolution_time", "DESC": "(Průměrný)" }, - { + "RESOLUTION_COUNT": { "NAME": "Počet rozlišení", - "KEY": "resolutions_count", "DESC": "( celkem)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/da/report.json b/app/javascript/dashboard/i18n/locale/da/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/da/report.json +++ b/app/javascript/dashboard/i18n/locale/da/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/de/report.json b/app/javascript/dashboard/i18n/locale/de/report.json index 5a79ed1cf..edb41cbd9 100644 --- a/app/javascript/dashboard/i18n/locale/de/report.json +++ b/app/javascript/dashboard/i18n/locale/de/report.json @@ -3,38 +3,32 @@ "HEADER": "Berichte", "LOADING_CHART": "Diagrammdaten laden ...", "NO_ENOUGH_DATA": "Wir haben nicht genügend Datenpunkte erhalten, um einen Bericht zu erstellen. Bitte versuchen Sie es später erneut.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Gespräche", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Eingehende Nachrichten", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Ausgehende Nachrichten", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Erste Antwortzeit", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Lösungszeit", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Auflösungsanzahl", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/el/report.json b/app/javascript/dashboard/i18n/locale/el/report.json index 07d748b76..501cd25ac 100644 --- a/app/javascript/dashboard/i18n/locale/el/report.json +++ b/app/javascript/dashboard/i18n/locale/el/report.json @@ -3,38 +3,32 @@ "HEADER": "Αναφορές", "LOADING_CHART": "Φόρτωση δεδομένων γραφήματος...", "NO_ENOUGH_DATA": "Δεν έχουν ληφθεί αρκετά σημεία δεδομένων για την δημιουργία της αναφοράς, Παρακαλώ προσπαθήστε αργότερα.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Συζητήσεις", - "KEY": "conversations_count", "DESC": "(Σύνολο)" }, - { + "INCOMING_MESSAGES": { "NAME": "Εισερχόμενα Μηνύματα", - "KEY": "incoming_messages_count", "DESC": "(Σύνολο)" }, - { + "OUTGOING_MESSAGES": { "NAME": "Εξερχόμενα Μηνύματα", - "KEY": "outgoing_messages_count", "DESC": "(Σύνολο)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Χρόνος πρώτης ανταπόκρισης", - "KEY": "avg_first_response_time", "DESC": "(Μ.Ο.)" }, - { + "RESOLUTION_TIME": { "NAME": "Χρόνος ανάλυσης", - "KEY": "avg_resolution_time", "DESC": "(Μ.Ο.)" }, - { + "RESOLUTION_COUNT": { "NAME": "Αριθμός Αναλύσεων", - "KEY": "resolutions_count", "DESC": "(Σύνολο)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/en/report.json b/app/javascript/dashboard/i18n/locale/en/report.json index e2aa5c541..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/en/report.json +++ b/app/javascript/dashboard/i18n/locale/en/report.json @@ -3,17 +3,41 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { "NAME": "Conversations", "KEY": "conversations_count", "DESC": "( Total )" }, - { "NAME": "Incoming Messages", "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { "NAME": "Outgoing Messages", "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { "NAME": "First response time", "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { "NAME": "Resolution Time", "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { "NAME": "Resolution Count", "KEY": "resolutions_count", "DESC": "( Total )" } - ], + "METRICS": { + "CONVERSATIONS": { + "NAME": "Conversations", + "DESC": "( Total )" + }, + "INCOMING_MESSAGES": { + "NAME": "Incoming Messages", + "DESC": "( Total )" + }, + "OUTGOING_MESSAGES": { + "NAME": "Outgoing Messages", + "DESC": "( Total )" + }, + "FIRST_RESPONSE_TIME": { + "NAME": "First response time", + "DESC": "( Avg )" + }, + "RESOLUTION_TIME": { + "NAME": "Resolution Time", + "DESC": "( Avg )" + }, + "RESOLUTION_COUNT": { + "NAME": "Resolution Count", + "DESC": "( Total )" + } + }, "DATE_RANGE": [ - { "id": 0, "name": "Last 7 days" }, - { "id": 1, "name": "Last 30 days" } + { + "id": 0, + "name": "Last 7 days" + }, + { + "id": 1, + "name": "Last 30 days" + } ] } } diff --git a/app/javascript/dashboard/i18n/locale/es/report.json b/app/javascript/dashboard/i18n/locale/es/report.json index f17a83247..b67ac670d 100644 --- a/app/javascript/dashboard/i18n/locale/es/report.json +++ b/app/javascript/dashboard/i18n/locale/es/report.json @@ -3,38 +3,32 @@ "HEADER": "Informes", "LOADING_CHART": "Cargando datos del gráfico...", "NO_ENOUGH_DATA": "No hemos recibido suficientes puntos de datos para generar el informe. Inténtalo de nuevo más tarde.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversaciones", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Mensajes entrantes", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Mensajes salientes", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Primera respuesta", - "KEY": "avg_first_response_time", "DESC": "( Media )" }, - { + "RESOLUTION_TIME": { "NAME": "Tiempo de resolución", - "KEY": "avg_resolution_time", "DESC": "( Media )" }, - { + "RESOLUTION_COUNT": { "NAME": "Número de resoluciones", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/fa/report.json b/app/javascript/dashboard/i18n/locale/fa/report.json index 31187ffbd..02582dab3 100644 --- a/app/javascript/dashboard/i18n/locale/fa/report.json +++ b/app/javascript/dashboard/i18n/locale/fa/report.json @@ -3,38 +3,32 @@ "HEADER": "گزارشات", "LOADING_CHART": "در حال دریافت اطلاعات...", "NO_ENOUGH_DATA": "متاسفانه اطلاعات کافی دریافت نشد، لطفا بعدا دوباره امتحان کنید", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "گفتگوها", - "KEY": "conversations_count", "DESC": "( جمع کل )" }, - { + "INCOMING_MESSAGES": { "NAME": "پیام‌های ورودی", - "KEY": "incoming_messages_count", "DESC": "( جمع کل )" }, - { + "OUTGOING_MESSAGES": { "NAME": "پیام‌های خروجی", - "KEY": "outgoing_messages_count", "DESC": "( جمع کل )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "زمان تا اولین پاسخ", - "KEY": "avg_first_response_time", "DESC": "( میانگین )" }, - { + "RESOLUTION_TIME": { "NAME": "زمان تا حل شدن مساله", - "KEY": "avg_resolution_time", "DESC": "( میانگین )" }, - { + "RESOLUTION_COUNT": { "NAME": "تعداد مسائل حل شده", - "KEY": "resolutions_count", "DESC": "( جمع کل )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/fi/report.json b/app/javascript/dashboard/i18n/locale/fi/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/fi/report.json +++ b/app/javascript/dashboard/i18n/locale/fi/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/fr/report.json b/app/javascript/dashboard/i18n/locale/fr/report.json index 04a95acf9..fa11a0084 100644 --- a/app/javascript/dashboard/i18n/locale/fr/report.json +++ b/app/javascript/dashboard/i18n/locale/fr/report.json @@ -3,38 +3,32 @@ "HEADER": "Rapports", "LOADING_CHART": "Chargement des données du graphique ...", "NO_ENOUGH_DATA": "Nous n'avons pas reçu assez de points de données pour générer un rapport. Veuillez réessayer plus tard.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "(Total)" }, - { + "INCOMING_MESSAGES": { "NAME": "Messages entrants", - "KEY": "incoming_messages_count", "DESC": "(Total)" }, - { + "OUTGOING_MESSAGES": { "NAME": "Messages sortants", - "KEY": "outgoing_messages_count", "DESC": "(Total)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Délai de la première réponse", - "KEY": "avg_first_response_time", "DESC": "(Moy.)" }, - { + "RESOLUTION_TIME": { "NAME": "Temps de résolution", - "KEY": "avg_resolution_time", "DESC": "(Moy.)" }, - { + "RESOLUTION_COUNT": { "NAME": "Nombre de résolutions", - "KEY": "resolutions_count", "DESC": "(Total)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/hi/report.json b/app/javascript/dashboard/i18n/locale/hi/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/hi/report.json +++ b/app/javascript/dashboard/i18n/locale/hi/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/hu/report.json b/app/javascript/dashboard/i18n/locale/hu/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/hu/report.json +++ b/app/javascript/dashboard/i18n/locale/hu/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/it/report.json b/app/javascript/dashboard/i18n/locale/it/report.json index 44ed7ab1c..f585ac532 100644 --- a/app/javascript/dashboard/i18n/locale/it/report.json +++ b/app/javascript/dashboard/i18n/locale/it/report.json @@ -3,38 +3,32 @@ "HEADER": "Segnalazioni", "LOADING_CHART": "Caricamento dati grafici...", "NO_ENOUGH_DATA": "Non abbiamo ricevuto abbastanza dati per generare la segnalazione, riprova più tardi.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversazioni", - "KEY": "Conteggio", "DESC": "(Totale )" }, - { + "INCOMING_MESSAGES": { "NAME": "Messaggi in arrivo", - "KEY": "in entrata_conto_messaggi", "DESC": "(Totale )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Messaggi in uscita", - "KEY": "conto_messaggi", "DESC": "(Totale )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Tempo di prima risposta", - "KEY": "orario_risposta", "DESC": "( Media )" }, - { + "RESOLUTION_TIME": { "NAME": "Risoluzione Tempo", - "KEY": "tempo_risoluzione", "DESC": "( Media )" }, - { + "RESOLUTION_COUNT": { "NAME": "Conteggio risoluzioni", - "KEY": "risoluzioni_conteggio", "DESC": "(Totale )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ja/report.json b/app/javascript/dashboard/i18n/locale/ja/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/ja/report.json +++ b/app/javascript/dashboard/i18n/locale/ja/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ko/report.json b/app/javascript/dashboard/i18n/locale/ko/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/ko/report.json +++ b/app/javascript/dashboard/i18n/locale/ko/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ml/report.json b/app/javascript/dashboard/i18n/locale/ml/report.json index 8176e387b..08c8753cd 100644 --- a/app/javascript/dashboard/i18n/locale/ml/report.json +++ b/app/javascript/dashboard/i18n/locale/ml/report.json @@ -3,38 +3,32 @@ "HEADER": "റിപ്പോർട്ടുകൾ", "LOADING_CHART": "ചാർട്ട് ഡാറ്റ ലോഡു ചെയ്യുകയാണ്...", "NO_ENOUGH_DATA": "റിപ്പോർട്ട് സൃഷ്ടിക്കുന്നതിന് ആവശ്യമായ ഡാറ്റ ഞങ്ങൾക്ക് ലഭിച്ചിട്ടില്ല, ദയവായി പിന്നീട് വീണ്ടും ശ്രമിക്കുക.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "സംഭാഷണങ്ങൾ", - "KEY": "conversations_count", "DESC": "(ആകെ)" }, - { + "INCOMING_MESSAGES": { "NAME": "ഇൻ‌കമിംഗ് സന്ദേശങ്ങൾ‌", - "KEY": "incoming_messages_count", "DESC": "( ആകെ )" }, - { + "OUTGOING_MESSAGES": { "NAME": "ഔട്ട് ഗോയിങ് സന്ദേശങ്ങൾ‌", - "KEY": "outgoing_messages_count", "DESC": "( ആകെ )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "ആദ്യ പ്രതികരണ സമയം", - "KEY": "avg_first_response_time", "DESC": "( ശരാശരി )" }, - { + "RESOLUTION_TIME": { "NAME": "മിഴിവ് സമയം", - "KEY": "avg_resolution_time", "DESC": "( ശരാശരി )" }, - { + "RESOLUTION_COUNT": { "NAME": "മിഴിവ് എണ്ണം", - "KEY": "resolutions_count", "DESC": "( ആകെ )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/nl/report.json b/app/javascript/dashboard/i18n/locale/nl/report.json index b06b4d2eb..5d9256372 100644 --- a/app/javascript/dashboard/i18n/locale/nl/report.json +++ b/app/javascript/dashboard/i18n/locale/nl/report.json @@ -3,38 +3,32 @@ "HEADER": "Rapporten", "LOADING_CHART": "Kaartgegevens laden...", "NO_ENOUGH_DATA": "We hebben niet genoeg datapunten ontvangen om een rapport te genereren, probeer het later opnieuw.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Gesprekken", - "KEY": "conversations_count", "DESC": "( Totaal )" }, - { + "INCOMING_MESSAGES": { "NAME": "Inkomende berichten", - "KEY": "incoming_messages_count", "DESC": "( Totaal )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Uitgaande berichten", - "KEY": "outgoing_messages_count", "DESC": "( Totaal )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Eerste reactietijd", - "KEY": "avg_first_response_time", "DESC": "(Gem. )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolutie Tijd", - "KEY": "avg_resolution_time", "DESC": "(Gem. )" }, - { + "RESOLUTION_COUNT": { "NAME": "Aantal Resoluties", - "KEY": "resolutions_count", "DESC": "( Totaal )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/pl/report.json b/app/javascript/dashboard/i18n/locale/pl/report.json index 980469ac0..dcd3f6094 100644 --- a/app/javascript/dashboard/i18n/locale/pl/report.json +++ b/app/javascript/dashboard/i18n/locale/pl/report.json @@ -3,38 +3,32 @@ "HEADER": "Raporty", "LOADING_CHART": "Ładowanie danych mapy...", "NO_ENOUGH_DATA": "Nie otrzymaliśmy wystarczającej ilości punktów danych, aby wygenerować raport, spróbuj ponownie później.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Rozmowy", - "KEY": "conversations_count", "DESC": "( łącznie )" }, - { + "INCOMING_MESSAGES": { "NAME": "Wiadomości przychodzące", - "KEY": "incoming_messages_count", "DESC": "( łącznie )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Wiadomości wychodzące", - "KEY": "outgoing_messages_count", "DESC": "( łącznie )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Czas pierwszej odpowiedzi", - "KEY": "avg_first_response_time", "DESC": "( Średnie )" }, - { + "RESOLUTION_TIME": { "NAME": "Czas rozdzielczości", - "KEY": "avg_resolution_time", "DESC": "( Średnie )" }, - { + "RESOLUTION_COUNT": { "NAME": "Licznik rozdzielczości", - "KEY": "resolutions_count", "DESC": "( łącznie )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/pt/report.json b/app/javascript/dashboard/i18n/locale/pt/report.json index d1ac4036d..258e5a871 100644 --- a/app/javascript/dashboard/i18n/locale/pt/report.json +++ b/app/javascript/dashboard/i18n/locale/pt/report.json @@ -3,38 +3,32 @@ "HEADER": "relatórios", "LOADING_CHART": "Carregando dados da carta...", "NO_ENOUGH_DATA": "Não recebemos pontos de dados suficientes para gerar o relatório. Por favor, tente novamente mais tarde.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversas", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Mensagens de entrada", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Mensagens de saída", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Primeiro tempo de resposta", - "KEY": "avg_first_response_time", "DESC": "(Méd. )" }, - { + "RESOLUTION_TIME": { "NAME": "Tempo de resolução", - "KEY": "avg_resolution_time", "DESC": "(Méd. )" }, - { + "RESOLUTION_COUNT": { "NAME": "Contagem de resolução", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/report.json b/app/javascript/dashboard/i18n/locale/pt_BR/report.json index 059e52ed8..31611d788 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/report.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/report.json @@ -3,38 +3,32 @@ "HEADER": "Relatórios", "LOADING_CHART": "Carregando dados do gráfico...", "NO_ENOUGH_DATA": "Não existem dados suficientes para gerar o relatório. Tente novamente mais tarde.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversas", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Mensagens Recebidas", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Mensagens enviadas", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Primeira resposta", - "KEY": "avg_first_response_time", "DESC": "(Média)" }, - { + "RESOLUTION_TIME": { "NAME": "Tempo de resolução", - "KEY": "avg_resolution_time", "DESC": "(Média)" }, - { + "RESOLUTION_COUNT": { "NAME": "Qtde de resolução", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ro/report.json b/app/javascript/dashboard/i18n/locale/ro/report.json index 027595035..3e7c19065 100644 --- a/app/javascript/dashboard/i18n/locale/ro/report.json +++ b/app/javascript/dashboard/i18n/locale/ro/report.json @@ -3,38 +3,32 @@ "HEADER": "Rapoarte", "LOADING_CHART": "Încărcare date grafic...", "NO_ENOUGH_DATA": "Nu am primit suficiente date pentru a genera raportul. Vă rugăm să încercați din nou mai târziu.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversații", - "KEY": "numar conversații", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Mesaje primite", - "KEY": "numărul_mesajelor_intrate", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Mesaje trimise", - "KEY": "numarul_mesajelor_iesite", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Primul răspuns", - "KEY": "media_primului_timp_de_raspuns", "DESC": "(Medie)" }, - { + "RESOLUTION_TIME": { "NAME": "Timp Rezolutie", - "KEY": "timpul_mediu_rezolutie", "DESC": "(Medie)" }, - { + "RESOLUTION_COUNT": { "NAME": "Număr de rezoluții", - "KEY": "numar_rezolutii", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ru/report.json b/app/javascript/dashboard/i18n/locale/ru/report.json index 73c28cb39..71e12c279 100644 --- a/app/javascript/dashboard/i18n/locale/ru/report.json +++ b/app/javascript/dashboard/i18n/locale/ru/report.json @@ -3,38 +3,32 @@ "HEADER": "Отчёты", "LOADING_CHART": "Загрузка данных графика...", "NO_ENOUGH_DATA": "Недостаточно данных для создания отчета, пожалуйста, повторите попытку позже.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Диалоги", - "KEY": "conversations_count", "DESC": "( Всего )" }, - { + "INCOMING_MESSAGES": { "NAME": "Входящие сообщения", - "KEY": "incoming_messages_count", "DESC": "( Всего )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Исходящие сообщения", - "KEY": "outgoing_messages_count", "DESC": "( Всего )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Время первого ответа", - "KEY": "avg_first_response_time", "DESC": "(Среднее)" }, - { + "RESOLUTION_TIME": { "NAME": "Время Завершения", - "KEY": "avg_resolution_time", "DESC": "(Среднее)" }, - { + "RESOLUTION_COUNT": { "NAME": "Количество завершенных", - "KEY": "resolutions_count", "DESC": "( Всего )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/sk/report.json b/app/javascript/dashboard/i18n/locale/sk/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/sk/report.json +++ b/app/javascript/dashboard/i18n/locale/sk/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/sv/report.json b/app/javascript/dashboard/i18n/locale/sv/report.json index c2ba9384d..7d1c4080e 100644 --- a/app/javascript/dashboard/i18n/locale/sv/report.json +++ b/app/javascript/dashboard/i18n/locale/sv/report.json @@ -3,38 +3,32 @@ "HEADER": "Rapporter", "LOADING_CHART": "Laddar sjökortsdata...", "NO_ENOUGH_DATA": "Vi har inte fått tillräckligt många datapunkter för att generera rapport, försök igen senare.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Konversationer", - "KEY": "conversations_count", "DESC": "( Totalt )" }, - { + "INCOMING_MESSAGES": { "NAME": "Inkommande meddelanden", - "KEY": "incoming_messages_count", "DESC": "( Totalt )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Utgående meddelanden", - "KEY": "outgoing_messages_count", "DESC": "( Totalt )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Första svarstiden", - "KEY": "avg_first_response_time", "DESC": "( Genomsnitt)" }, - { + "RESOLUTION_TIME": { "NAME": "Lösning Tid", - "KEY": "avg_resolution_time", "DESC": "( Genomsnitt)" }, - { + "RESOLUTION_COUNT": { "NAME": "Antal upplösningar", - "KEY": "resolutions_count", "DESC": "( Totalt )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/ta/report.json b/app/javascript/dashboard/i18n/locale/ta/report.json index 60295de85..af22e8b81 100644 --- a/app/javascript/dashboard/i18n/locale/ta/report.json +++ b/app/javascript/dashboard/i18n/locale/ta/report.json @@ -3,38 +3,32 @@ "HEADER": "அறிக்கைகள்", "LOADING_CHART": "சார்ட்டுக்கான டேட்டாவை பெறுகிறது...", "NO_ENOUGH_DATA": "அறிக்கையை உருவாக்க போதுமான தரவுகளை பெறவில்லை, தயவுசெய்து மீண்டும் முயற்சிக்கவும்.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "உரையாடல்கள்", - "KEY": "conversations_count", "DESC": "( மொத்தம் )" }, - { + "INCOMING_MESSAGES": { "NAME": "உள்வரும் செய்திகள்", - "KEY": "incoming_messages_count", "DESC": "( மொத்தம் )" }, - { + "OUTGOING_MESSAGES": { "NAME": "வெளிச்செல்லும் செய்திகள்", - "KEY": "outgoing_messages_count", "DESC": "( மொத்தம் )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "முதல் பதில் வழங்க எடுத்துக்கொண்ட நேரம்", - "KEY": "avg_first_response_time", "DESC": "(சராசரி)" }, - { + "RESOLUTION_TIME": { "NAME": "தீர்வு வழங்க எடுத்துக்கொண்ட நேரம்", - "KEY": "avg_resolution_time", "DESC": "(சராசரி)" }, - { + "RESOLUTION_COUNT": { "NAME": "தீர்மான எண்ணிக்கை", - "KEY": "resolutions_count", "DESC": "( மொத்தம் )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/th/report.json b/app/javascript/dashboard/i18n/locale/th/report.json index 7a6c769be..fae584afe 100644 --- a/app/javascript/dashboard/i18n/locale/th/report.json +++ b/app/javascript/dashboard/i18n/locale/th/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "การสนทนา", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/tr/report.json b/app/javascript/dashboard/i18n/locale/tr/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/tr/report.json +++ b/app/javascript/dashboard/i18n/locale/tr/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/uk/report.json b/app/javascript/dashboard/i18n/locale/uk/report.json index 91e05edde..58854f762 100644 --- a/app/javascript/dashboard/i18n/locale/uk/report.json +++ b/app/javascript/dashboard/i18n/locale/uk/report.json @@ -3,38 +3,32 @@ "HEADER": "Звіти", "LOADING_CHART": "Завантаження даних діаграми...", "NO_ENOUGH_DATA": "Ми не отримали достатньо даних для генерації звіту. Будь ласка, спробуйте ще раз пізніше.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Бесіди", - "KEY": "conversations_count", "DESC": "(Загалом)" }, - { + "INCOMING_MESSAGES": { "NAME": "Вхідні повідомлення", - "KEY": "incoming_messages_count", "DESC": "(Загалом)" }, - { + "OUTGOING_MESSAGES": { "NAME": "Вихідні повідомлення", - "KEY": "outgoing_messages_count", "DESC": "(Загалом)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "Час першої відповіді", - "KEY": "avg_first_response_time", "DESC": "( Середнє )" }, - { + "RESOLUTION_TIME": { "NAME": "Час до вирішення", - "KEY": "avg_resolution_time", "DESC": "( Середнє )" }, - { + "RESOLUTION_COUNT": { "NAME": "Кількість вирішень", - "KEY": "resolutions_count", "DESC": "(Загалом)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/vi/report.json b/app/javascript/dashboard/i18n/locale/vi/report.json index ec38f46cf..8a4d53485 100644 --- a/app/javascript/dashboard/i18n/locale/vi/report.json +++ b/app/javascript/dashboard/i18n/locale/vi/report.json @@ -3,38 +3,32 @@ "HEADER": "Reports", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "Conversations", - "KEY": "conversations_count", "DESC": "( Total )" }, - { + "INCOMING_MESSAGES": { "NAME": "Incoming Messages", - "KEY": "incoming_messages_count", "DESC": "( Total )" }, - { + "OUTGOING_MESSAGES": { "NAME": "Outgoing Messages", - "KEY": "outgoing_messages_count", "DESC": "( Total )" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "First response time", - "KEY": "avg_first_response_time", "DESC": "( Avg )" }, - { + "RESOLUTION_TIME": { "NAME": "Resolution Time", - "KEY": "avg_resolution_time", "DESC": "( Avg )" }, - { + "RESOLUTION_COUNT": { "NAME": "Resolution Count", - "KEY": "resolutions_count", "DESC": "( Total )" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/zh/report.json b/app/javascript/dashboard/i18n/locale/zh/report.json index 8d5f66c14..8df14d19b 100644 --- a/app/javascript/dashboard/i18n/locale/zh/report.json +++ b/app/javascript/dashboard/i18n/locale/zh/report.json @@ -3,38 +3,32 @@ "HEADER": "报告", "LOADING_CHART": "正在载入图表数据...", "NO_ENOUGH_DATA": "我们没有收到足够的数据点来生成报告,请稍后再试。", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "会话", - "KEY": "conversations_count", "DESC": "(总计)" }, - { + "INCOMING_MESSAGES": { "NAME": "收到的消息", - "KEY": "incoming_messages_count", "DESC": "(总计)" }, - { + "OUTGOING_MESSAGES": { "NAME": "发送的消息", - "KEY": "outgoing_messages_count", "DESC": "(总计)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "首次响应时间", - "KEY": "avg_first_response_time", "DESC": "( 平均)" }, - { + "RESOLUTION_TIME": { "NAME": "解决时间", - "KEY": "avg_resolution_time", "DESC": "( 平均)" }, - { + "RESOLUTION_COUNT": { "NAME": "已解决的数量", - "KEY": "resolutions_count", "DESC": "(总计)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/zh_CN/report.json b/app/javascript/dashboard/i18n/locale/zh_CN/report.json index 8d5f66c14..8df14d19b 100644 --- a/app/javascript/dashboard/i18n/locale/zh_CN/report.json +++ b/app/javascript/dashboard/i18n/locale/zh_CN/report.json @@ -3,38 +3,32 @@ "HEADER": "报告", "LOADING_CHART": "正在载入图表数据...", "NO_ENOUGH_DATA": "我们没有收到足够的数据点来生成报告,请稍后再试。", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "会话", - "KEY": "conversations_count", "DESC": "(总计)" }, - { + "INCOMING_MESSAGES": { "NAME": "收到的消息", - "KEY": "incoming_messages_count", "DESC": "(总计)" }, - { + "OUTGOING_MESSAGES": { "NAME": "发送的消息", - "KEY": "outgoing_messages_count", "DESC": "(总计)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "首次响应时间", - "KEY": "avg_first_response_time", "DESC": "( 平均)" }, - { + "RESOLUTION_TIME": { "NAME": "解决时间", - "KEY": "avg_resolution_time", "DESC": "( 平均)" }, - { + "RESOLUTION_COUNT": { "NAME": "已解决的数量", - "KEY": "resolutions_count", "DESC": "(总计)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/i18n/locale/zh_TW/report.json b/app/javascript/dashboard/i18n/locale/zh_TW/report.json index c3ede612e..5ba878316 100644 --- a/app/javascript/dashboard/i18n/locale/zh_TW/report.json +++ b/app/javascript/dashboard/i18n/locale/zh_TW/report.json @@ -3,38 +3,32 @@ "HEADER": "報表", "LOADING_CHART": "正在載入图表數據...", "NO_ENOUGH_DATA": "我們没有收到足夠的數據來生成報表,請稍後再試。", - "METRICS": [ - { + "METRICS": { + "CONVERSATIONS": { "NAME": "會話", - "KEY": "conversations_count", "DESC": "(總計)" }, - { + "INCOMING_MESSAGES": { "NAME": "收到的消息", - "KEY": "incoming_messages_count", "DESC": "(總計)" }, - { + "OUTGOING_MESSAGES": { "NAME": "發送的消息", - "KEY": "outgoing_messages_count", "DESC": "(總計)" }, - { + "FIRST_RESPONSE_TIME": { "NAME": "首次回覆時間", - "KEY": "avg_first_response_time", "DESC": "( 平均)" }, - { + "RESOLUTION_TIME": { "NAME": "解決時間", - "KEY": "avg_resolution_time", "DESC": "( 平均)" }, - { + "RESOLUTION_COUNT": { "NAME": "已解決的數量", - "KEY": "resolutions_count", "DESC": "(總計)" } - ], + }, "DATE_RANGE": [ { "id": 0, diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/Index.vue index 742ff0e44..f9559ca28 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/reports/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/Index.vue @@ -47,6 +47,15 @@ import getUnixTime from 'date-fns/getUnixTime'; import fromUnixTime from 'date-fns/fromUnixTime'; import format from 'date-fns/format'; +const REPORTS_KEYS = { + CONVERSATIONS: 'conversations_count', + INCOMING_MESSAGES: 'incoming_messages_count', + OUTGOING_MESSAGES: 'outgoing_messages_count', + FIRST_RESPONSE_TIME: 'avg_first_response_time', + RESOLUTION_TIME: 'avg_resolution_time', + RESOLUTION_COUNT: 'resolutions_count', +}; + export default { data() { return { @@ -89,7 +98,19 @@ export default { }; }, metrics() { - return this.$t('REPORT.METRICS'); + const reportKeys = [ + 'CONVERSATIONS', + 'INCOMING_MESSAGES', + 'OUTGOING_MESSAGES', + 'FIRST_RESPONSE_TIME', + 'RESOLUTION_TIME', + 'RESOLUTION_COUNT', + ]; + return reportKeys.map(key => ({ + NAME: this.$t(`REPORT.METRICS.${key}.NAME`), + KEY: REPORTS_KEYS[key], + DESC: this.$t(`REPORT.METRICS.${key}.DESC`), + })); }, }, mounted() {