fix: Add missing translations in agent reports (#2017)

This commit is contained in:
Pranav Raj S 2021-03-30 20:00:17 +05:30 committed by GitHub
parent 42534e1df4
commit 71214b59d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View file

@ -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 %> <%= CSV.generate_line headers %>
<% Current.account.users.each do |agent| %> <% Current.account.users.each do |agent| %>
<% agent_report = V2::ReportBuilder.new(Current.account, { <% agent_report = V2::ReportBuilder.new(Current.account, {

View file

@ -44,6 +44,11 @@ en:
reports: reports:
period: Reporting period %{since} to %{until} 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: notifications:
notification_title: notification_title:

View file

@ -29,6 +29,11 @@ ml:
failed: സൈനപ്പ് പരാജയപ്പെട്ടു failed: സൈനപ്പ് പരാജയപ്പെട്ടു
reports: reports:
period: Reporting period %{since} to %{until} period: Reporting period %{since} to %{until}
agent_csv:
agent_name: ഏജന്റിന്റെ പേര്
conversations_count: സംഭാഷണങ്ങളുടെ എണ്ണം
avg_first_response_time: ശരാശരി ആദ്യ പ്രതികരണ സമയം (മിനിറ്റ്)
avg_resolution_time: ശരാശരി മിഴിവ് സമയം (മിനിറ്റ്)
notifications: notifications:
notification_title: notification_title:
conversation_creation: "[New conversation] - #%{display_id} has been created in %{inbox_name}" conversation_creation: "[New conversation] - #%{display_id} has been created in %{inbox_name}"