diff --git a/frontend/src/components/Notifications.vue b/frontend/src/components/Notifications.vue index e4ad67dd..5679b8db 100644 --- a/frontend/src/components/Notifications.vue +++ b/frontend/src/components/Notifications.vue @@ -68,7 +68,7 @@
- {{ timeAgo(n.creation) }} + {{ __(timeAgo(n.creation)) }}
diff --git a/frontend/src/pages/CallLogs.vue b/frontend/src/pages/CallLogs.vue index 241aad9e..28bb5983 100644 --- a/frontend/src/pages/CallLogs.vue +++ b/frontend/src/pages/CallLogs.vue @@ -131,7 +131,7 @@ const rows = computed(() => { } else if (['modified', 'creation'].includes(row)) { _rows[row] = { label: dateFormat(callLog[row], dateTooltipFormat), - timeAgo: timeAgo(callLog[row]), + timeAgo: __(timeAgo(callLog[row])), } } }) diff --git a/frontend/src/pages/Contact.vue b/frontend/src/pages/Contact.vue index 61b0a1d0..72385ea2 100644 --- a/frontend/src/pages/Contact.vue +++ b/frontend/src/pages/Contact.vue @@ -363,7 +363,7 @@ function getDealRowObject(deal) { }, modified: { label: dateFormat(deal.modified, dateTooltipFormat), - timeAgo: timeAgo(deal.modified), + timeAgo: __(timeAgo(deal.modified)), }, } } diff --git a/frontend/src/pages/Contacts.vue b/frontend/src/pages/Contacts.vue index 8130f527..7ba2586b 100644 --- a/frontend/src/pages/Contacts.vue +++ b/frontend/src/pages/Contacts.vue @@ -127,7 +127,7 @@ const rows = computed(() => { } else if (['modified', 'creation'].includes(row)) { _rows[row] = { label: dateFormat(contact[row], dateTooltipFormat), - timeAgo: timeAgo(contact[row]), + timeAgo: __(timeAgo(contact[row])), } } }) diff --git a/frontend/src/pages/Deals.vue b/frontend/src/pages/Deals.vue index 03d513a7..098ee0d3 100644 --- a/frontend/src/pages/Deals.vue +++ b/frontend/src/pages/Deals.vue @@ -147,7 +147,7 @@ const rows = computed(() => { ? 'green' : 'orange' if (value == 'First Response Due') { - value = timeAgo(deal.response_by) + value = __(timeAgo(deal.response_by)) tooltipText = dateFormat(deal.response_by, dateTooltipFormat) if (new Date(deal.response_by) < new Date()) { color = 'red' @@ -176,7 +176,7 @@ const rows = computed(() => { } else if (['modified', 'creation'].includes(row)) { _rows[row] = { label: dateFormat(deal[row], dateTooltipFormat), - timeAgo: timeAgo(deal[row]), + timeAgo: __(timeAgo(deal[row])), } } else if ( ['first_response_time', 'first_responded_on', 'response_by'].includes( @@ -189,7 +189,7 @@ const rows = computed(() => { timeAgo: deal[row] ? row == 'first_response_time' ? formatTime(deal[row]) - : timeAgo(deal[row]) + : __(timeAgo(deal[row])) : '', } } diff --git a/frontend/src/pages/Leads.vue b/frontend/src/pages/Leads.vue index 905b8f2f..b3b69349 100644 --- a/frontend/src/pages/Leads.vue +++ b/frontend/src/pages/Leads.vue @@ -149,7 +149,7 @@ const rows = computed(() => { ? 'green' : 'orange' if (value == 'First Response Due') { - value = timeAgo(lead.response_by) + value = __(timeAgo(lead.response_by)) tooltipText = dateFormat(lead.response_by, dateTooltipFormat) if (new Date(lead.response_by) < new Date()) { color = 'red' @@ -178,7 +178,7 @@ const rows = computed(() => { } else if (['modified', 'creation'].includes(row)) { _rows[row] = { label: dateFormat(lead[row], dateTooltipFormat), - timeAgo: timeAgo(lead[row]), + timeAgo: __(timeAgo(lead[row])), } } else if ( ['first_response_time', 'first_responded_on', 'response_by'].includes( @@ -191,7 +191,7 @@ const rows = computed(() => { timeAgo: lead[row] ? row == 'first_response_time' ? formatTime(lead[row]) - : timeAgo(lead[row]) + : __(timeAgo(lead[row])) : '', } } diff --git a/frontend/src/pages/Notes.vue b/frontend/src/pages/Notes.vue index 32d90c25..718c82f8 100644 --- a/frontend/src/pages/Notes.vue +++ b/frontend/src/pages/Notes.vue @@ -66,7 +66,7 @@
- {{ timeAgo(note.modified) }} + {{ __(timeAgo(note.modified)) }}
diff --git a/frontend/src/pages/Organization.vue b/frontend/src/pages/Organization.vue index cd137023..aaee485d 100644 --- a/frontend/src/pages/Organization.vue +++ b/frontend/src/pages/Organization.vue @@ -416,7 +416,7 @@ function getDealRowObject(deal) { }, modified: { label: dateFormat(deal.modified, dateTooltipFormat), - timeAgo: timeAgo(deal.modified), + timeAgo: __(timeAgo(deal.modified)), }, } } @@ -437,7 +437,7 @@ function getContactRowObject(contact) { }, modified: { label: dateFormat(contact.modified, dateTooltipFormat), - timeAgo: timeAgo(contact.modified), + timeAgo: __(timeAgo(contact.modified)), }, } } diff --git a/frontend/src/pages/Organizations.vue b/frontend/src/pages/Organizations.vue index 165069c9..967c20b9 100644 --- a/frontend/src/pages/Organizations.vue +++ b/frontend/src/pages/Organizations.vue @@ -126,7 +126,7 @@ const rows = computed(() => { } else if (['modified', 'creation'].includes(row)) { _rows[row] = { label: dateFormat(organization[row], dateTooltipFormat), - timeAgo: timeAgo(organization[row]), + timeAgo: __(timeAgo(organization[row])), } } }) diff --git a/frontend/src/pages/Tasks.vue b/frontend/src/pages/Tasks.vue index 604bbe8a..7edcb72c 100644 --- a/frontend/src/pages/Tasks.vue +++ b/frontend/src/pages/Tasks.vue @@ -89,7 +89,7 @@ const rows = computed(() => { if (['modified', 'creation'].includes(row)) { _rows[row] = { label: dateFormat(task[row], dateTooltipFormat), - timeAgo: timeAgo(task[row]), + timeAgo: __(timeAgo(task[row])), } } else if (row == 'assigned_to') { _rows[row] = {