diff --git a/loc/en.js b/loc/en.js index 47bebfe12..16d084136 100644 --- a/loc/en.js +++ b/loc/en.js @@ -6,6 +6,7 @@ module.exports = { months_ago: 'months ago', days_ago: 'days ago', hours_ago: 'hours ago', + minutes_ago: 'minutes ago', never: 'never', }, wallets: { diff --git a/loc/es.js b/loc/es.js index bdc2dc244..1bae418d8 100644 --- a/loc/es.js +++ b/loc/es.js @@ -6,6 +6,7 @@ module.exports = { months_ago: 'months ago', days_ago: 'days ago', hours_ago: 'hours ago', + minutes_ago: 'minutes ago', never: 'never', }, wallets: { diff --git a/loc/index.js b/loc/index.js index eaab99b98..42c46f9f3 100644 --- a/loc/index.js +++ b/loc/index.js @@ -50,9 +50,12 @@ strings.transactionTimeToReadable = function(time) { } else if (ago / (3600 * 24) >= 1) { ago = Math.round(ago / (3600 * 24)); return ago + ' ' + strings._.days_ago; - } else { + } else if (ago > 3600) { ago = Math.round(ago / 3600); return ago + ' ' + strings._.hours_ago; + } else { + ago = Math.round(ago / 60); + return ago + ' ' + strings._.minutes_ago; } }; diff --git a/loc/pt_BR.js b/loc/pt_BR.js index 8330dd030..4f0c50dca 100644 --- a/loc/pt_BR.js +++ b/loc/pt_BR.js @@ -6,6 +6,7 @@ module.exports = { months_ago: 'months ago', days_ago: 'days ago', hours_ago: 'hours ago', + minutes_ago: 'minutes ago', never: 'never', }, wallets: { diff --git a/loc/pt_PT.js b/loc/pt_PT.js index 20637b4d7..428172967 100644 --- a/loc/pt_PT.js +++ b/loc/pt_PT.js @@ -6,6 +6,7 @@ module.exports = { months_ago: 'months ago', days_ago: 'days ago', hours_ago: 'hours ago', + minutes_ago: 'minutes ago', never: 'never', }, wallets: { diff --git a/loc/ru.js b/loc/ru.js index bd941cc37..e35c77aee 100644 --- a/loc/ru.js +++ b/loc/ru.js @@ -6,6 +6,7 @@ module.exports = { months_ago: 'месяцев назад', days_ago: 'дней назад', hours_ago: 'часов назад', + minutes_ago: 'минут назад', never: 'никогда', }, wallets: { diff --git a/loc/ua.js b/loc/ua.js index 82ecc1118..90a730e44 100644 --- a/loc/ua.js +++ b/loc/ua.js @@ -6,6 +6,7 @@ module.exports = { months_ago: 'months ago', days_ago: 'days ago', hours_ago: 'hours ago', + minutes_ago: 'minutes ago', never: 'never', }, wallets: {