diff --git a/app/views/api/v2/accounts/reports/agents.csv.erb b/app/views/api/v2/accounts/reports/agents.csv.erb index 3675c0a66..ca0a7e1f4 100644 --- a/app/views/api/v2/accounts/reports/agents.csv.erb +++ b/app/views/api/v2/accounts/reports/agents.csv.erb @@ -1,4 +1,10 @@ -<% headers = ['Agent name', 'Conversations count', 'Avg first response time (Minutes)', 'Avg resolution time (Minutes)'] %> +<% headers = [ + I18n.t('reports.agent_csv.agent_name'), + I18n.t('reports.agent_csv.conversations_count'), + I18n.t('reports.agent_csv.avg_first_response_time'), + I18n.t('reports.agent_csv.avg_resolution_time') + ] +%> <%= CSV.generate_line headers %> <% Current.account.users.each do |agent| %> <% agent_report = V2::ReportBuilder.new(Current.account, { diff --git a/config/locales/en.yml b/config/locales/en.yml index a344118a0..35aac041d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -44,6 +44,11 @@ en: reports: period: Reporting period %{since} to %{until} + agent_csv: + agent_name: Agent name + conversations_count: Conversations count + avg_first_response_time: Avg first response time (Minutes) + avg_resolution_time: Avg resolution time (Minutes) notifications: notification_title: diff --git a/config/locales/ml.yml b/config/locales/ml.yml index 1340afc54..294665698 100644 --- a/config/locales/ml.yml +++ b/config/locales/ml.yml @@ -29,6 +29,11 @@ ml: failed: സൈനപ്പ് പരാജയപ്പെട്ടു reports: period: Reporting period %{since} to %{until} + agent_csv: + agent_name: ഏജന്റിന്റെ പേര് + conversations_count: സംഭാഷണങ്ങളുടെ എണ്ണം + avg_first_response_time: ശരാശരി ആദ്യ പ്രതികരണ സമയം (മിനിറ്റ്) + avg_resolution_time: ശരാശരി മിഴിവ് സമയം (മിനിറ്റ്) notifications: notification_title: conversation_creation: "[New conversation] - #%{display_id} has been created in %{inbox_name}"