From c91f511391ed082bf4fb0d23c405b02e8d78050d Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 15 Apr 2024 19:57:57 +0530 Subject: [PATCH] fix: added translation in Call Log Page --- .../components/ListViews/CallLogsListView.vue | 2 +- frontend/src/pages/CallLog.vue | 29 ++++++++++--------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/ListViews/CallLogsListView.vue b/frontend/src/components/ListViews/CallLogsListView.vue index 45c34b74..a9fd0bd9 100644 --- a/frontend/src/components/ListViews/CallLogsListView.vue +++ b/frontend/src/components/ListViews/CallLogsListView.vue @@ -53,7 +53,7 @@ :variant="'subtle'" :theme="item.color" size="md" - :label="item.label" + :label="__(item.label)" />
diff --git a/frontend/src/pages/CallLog.vue b/frontend/src/pages/CallLog.vue index b12d4bbf..dd258e06 100644 --- a/frontend/src/pages/CallLog.vue +++ b/frontend/src/pages/CallLog.vue @@ -7,16 +7,15 @@ -
-
Call details
+
{{ __('Call details') }}
@@ -29,7 +28,11 @@ class="h-4 w-4 text-gray-600" />
- {{ callLog.data.type == 'Incoming' ? 'Inbound' : 'Outbound' }} call + {{ + callLog.data.type == 'Incoming' + ? __('Inbound Call') + : __('Outbound Call') + }}
@@ -37,7 +40,7 @@ :variant="'subtle'" :theme="statusColorMap[callLog.data.status]" size="md" - :label="statusLabelMap[callLog.data.status]" + :label="__(statusLabelMap[callLog.data.status])" />
@@ -50,7 +53,7 @@ />
- {{ callLog.data.caller.label }} + {{ __(callLog.data.caller.label) }}
{{ callLog.data.from }} @@ -64,7 +67,7 @@ />
- {{ callLog.data.receiver.label }} + {{ __(callLog.data.receiver.label) }}
{{ callLog.data.to }} @@ -75,19 +78,19 @@
-
Duration
+
{{ __('Duration') }}
{{ callLog.data.duration }}
- {{ timeAgo(callLog.data.creation) }} + {{ __(timeAgo(callLog.data.creation)) }}
-
Call recording
+
{{ __('Call recording') }}