fix: correct timestamp pluralization for singular forms (#694)

Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
This commit is contained in:
The Daniel ⚡️ 2025-12-14 20:09:41 -05:00 committed by GitHub
parent 9f428aed8c
commit 36f6d810ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 105 additions and 54 deletions

View file

@ -35,17 +35,17 @@ function FormattedTimestampContent({
const diffDay = now.diff(time, 'day') const diffDay = now.diff(time, 'day')
if (diffDay >= 1) { if (diffDay >= 1) {
return short ? t('n d', { n: diffDay }) : t('n days ago', { n: diffDay }) return short ? t('n d', { n: diffDay }) : t('day ago', { count: diffDay })
} }
const diffHour = now.diff(time, 'hour') const diffHour = now.diff(time, 'hour')
if (diffHour >= 1) { if (diffHour >= 1) {
return short ? t('n h', { n: diffHour }) : t('n hours ago', { n: diffHour }) return short ? t('n h', { n: diffHour }) : t('hour ago', { count: diffHour })
} }
const diffMinute = now.diff(time, 'minute') const diffMinute = now.diff(time, 'minute')
if (diffMinute >= 1) { if (diffMinute >= 1) {
return short ? t('n m', { n: diffMinute }) : t('n minutes ago', { n: diffMinute }) return short ? t('n m', { n: diffMinute }) : t('minute ago', { count: diffMinute })
} }
return t('just now') return t('just now')

View file

@ -16,11 +16,14 @@ export default {
followings: 'المتابعين', followings: 'المتابعين',
reposted: 'أُعيد نشره', reposted: 'أُعيد نشره',
'just now': 'الآن', 'just now': 'الآن',
'n minutes ago': 'منذ {{n}} دقيقة', 'minute ago_one': 'منذ {{count}} دقيقة',
'minute ago_other': 'منذ {{count}} دقيقة',
'n m': '{{n}} دقيقة', 'n m': '{{n}} دقيقة',
'n hours ago': 'منذ {{n}} ساعة', 'hour ago_one': 'منذ {{count}} ساعة',
'hour ago_other': 'منذ {{count}} ساعة',
'n h': '{{n}} ساعة', 'n h': '{{n}} ساعة',
'n days ago': 'منذ {{n}} يوم', 'day ago_one': 'منذ {{count}} يوم',
'day ago_other': 'منذ {{count}} يوم',
'n d': '{{n}} يوم', 'n d': '{{n}} يوم',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'متابعة', Follow: 'متابعة',

View file

@ -16,11 +16,14 @@ export default {
followings: 'Folgekonten', followings: 'Folgekonten',
reposted: 'erneut gepostet', reposted: 'erneut gepostet',
'just now': 'gerade eben', 'just now': 'gerade eben',
'n minutes ago': 'vor {{n}} Minuten', 'minute ago_one': 'vor {{count}} Minute',
'minute ago_other': 'vor {{count}} Minuten',
'n m': 'vor {{n}}m', 'n m': 'vor {{n}}m',
'n hours ago': 'vor {{n}} Stunden', 'hour ago_one': 'vor {{count}} Stunde',
'hour ago_other': 'vor {{count}} Stunden',
'n h': 'vor {{n}}h', 'n h': 'vor {{n}}h',
'n days ago': 'vor {{n}} Tagen', 'day ago_one': 'vor {{count}} Tag',
'day ago_other': 'vor {{count}} Tagen',
'n d': 'vor {{n}}d', 'n d': 'vor {{n}}d',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Folgen', Follow: 'Folgen',

View file

@ -15,11 +15,14 @@ export default {
followings: 'followings', followings: 'followings',
reposted: 'reposted', reposted: 'reposted',
'just now': 'just now', 'just now': 'just now',
'n minutes ago': '{{n}} minutes ago', 'minute ago_one': '{{count}} minute ago',
'minute ago_other': '{{count}} minutes ago',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': '{{n}} hours ago', 'hour ago_one': '{{count}} hour ago',
'hour ago_other': '{{count}} hours ago',
'n h': '{{n}}h', 'n h': '{{n}}h',
'n days ago': '{{n}} days ago', 'day ago_one': '{{count}} day ago',
'day ago_other': '{{count}} days ago',
'n d': '{{n}}d', 'n d': '{{n}}d',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Follow', Follow: 'Follow',

View file

@ -16,11 +16,14 @@ export default {
followings: 'siguiendo', followings: 'siguiendo',
reposted: 'retransmitido', reposted: 'retransmitido',
'just now': 'justo ahora', 'just now': 'justo ahora',
'n minutes ago': 'hace {{n}} minutos', 'minute ago_one': 'hace {{count}} minuto',
'minute ago_other': 'hace {{count}} minutos',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': 'hace {{n}} horas', 'hour ago_one': 'hace {{count}} hora',
'hour ago_other': 'hace {{count}} horas',
'n h': '{{n}}h', 'n h': '{{n}}h',
'n days ago': 'hace {{n}} días', 'day ago_one': 'hace {{count}} día',
'day ago_other': 'hace {{count}} días',
'n d': '{{n}}d', 'n d': '{{n}}d',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Seguir', Follow: 'Seguir',

View file

@ -15,11 +15,14 @@ export default {
followings: 'دنبال شونده‌ها', followings: 'دنبال شونده‌ها',
reposted: 'بازنشر شده', reposted: 'بازنشر شده',
'just now': 'همین الان', 'just now': 'همین الان',
'n minutes ago': '{{n}} دقیقه پیش', 'minute ago_one': '{{count}} دقیقه پیش',
'minute ago_other': '{{count}} دقیقه پیش',
'n m': '{{n}}د', 'n m': '{{n}}د',
'n hours ago': '{{n}} ساعت پیش', 'hour ago_one': '{{count}} ساعت پیش',
'hour ago_other': '{{count}} ساعت پیش',
'n h': '{{n}}س', 'n h': '{{n}}س',
'n days ago': '{{n}} روز پیش', 'day ago_one': '{{count}} روز پیش',
'day ago_other': '{{count}} روز پیش',
'n d': '{{n}}ر', 'n d': '{{n}}ر',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'دنبال کردن', Follow: 'دنبال کردن',

View file

@ -16,11 +16,14 @@ export default {
followings: 'abonnements', followings: 'abonnements',
reposted: 'republié', reposted: 'republié',
'just now': "à l'instant", 'just now': "à l'instant",
'n minutes ago': 'il y a {{n}} minutes', 'minute ago_one': 'il y a {{count}} minute',
'minute ago_other': 'il y a {{count}} minutes',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': 'il y a {{n}} heures', 'hour ago_one': 'il y a {{count}} heure',
'hour ago_other': 'il y a {{count}} heures',
'n h': '{{n}}h', 'n h': '{{n}}h',
'n days ago': 'il y a {{n}} jours', 'day ago_one': 'il y a {{count}} jour',
'day ago_other': 'il y a {{count}} jours',
'n d': '{{n}}j', 'n d': '{{n}}j',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Suivre', Follow: 'Suivre',

View file

@ -15,11 +15,14 @@ export default {
followings: 'फॉलोइंग', followings: 'फॉलोइंग',
reposted: 'रीपोस्ट किया', reposted: 'रीपोस्ट किया',
'just now': 'अभी', 'just now': 'अभी',
'n minutes ago': '{{n}} मिनट पहले', 'minute ago_one': '{{count}} मिनट पहले',
'minute ago_other': '{{count}} मिनट पहले',
'n m': '{{n}}मि', 'n m': '{{n}}मि',
'n hours ago': '{{n}} घंटे पहले', 'hour ago_one': '{{count}} घंटा पहले',
'hour ago_other': '{{count}} घंटे पहले',
'n h': '{{n}}घं', 'n h': '{{n}}घं',
'n days ago': '{{n}} दिन पहले', 'day ago_one': '{{count}} दिन पहले',
'day ago_other': '{{count}} दिन पहले',
'n d': '{{n}}दि', 'n d': '{{n}}दि',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'फॉलो करें', Follow: 'फॉलो करें',

View file

@ -15,11 +15,14 @@ export default {
followings: 'követések', followings: 'követések',
reposted: 'újraposztolta', reposted: 'újraposztolta',
'just now': 'épp most', 'just now': 'épp most',
'n minutes ago': '{{n}} perce', 'minute ago_one': '{{count}} perce',
'minute ago_other': '{{count}} perce',
'n m': '{{n}}p', 'n m': '{{n}}p',
'n hours ago': '{{n}} órája', 'hour ago_one': '{{count}} órája',
'hour ago_other': '{{count}} órája',
'n h': '{{n}}ó', 'n h': '{{n}}ó',
'n days ago': '{{n}} napja', 'day ago_one': '{{count}} napja',
'day ago_other': '{{count}} napja',
'n d': '{{n}}n', 'n d': '{{n}}n',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Követés', Follow: 'Követés',

View file

@ -15,11 +15,14 @@ export default {
followings: 'seguiti', followings: 'seguiti',
reposted: 'ripubblica', reposted: 'ripubblica',
'just now': 'adesso', 'just now': 'adesso',
'n minutes ago': '{{n}} minuti fa', 'minute ago_one': '{{count}} minuto fa',
'minute ago_other': '{{count}} minuti fa',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': '{{n}} ore fa', 'hour ago_one': '{{count}} ora fa',
'hour ago_other': '{{count}} ore fa',
'n h': '{{n}}o', 'n h': '{{n}}o',
'n days ago': '{{n}} giorni fa', 'day ago_one': '{{count}} giorno fa',
'day ago_other': '{{count}} giorni fa',
'n d': '{{n}}g', 'n d': '{{n}}g',
date: '{{timestamp, data}}', date: '{{timestamp, data}}',
Follow: 'Segui', Follow: 'Segui',

View file

@ -16,11 +16,14 @@ export default {
followings: 'フォロー', followings: 'フォロー',
reposted: 'リポスト済み', reposted: 'リポスト済み',
'just now': 'たった今', 'just now': 'たった今',
'n minutes ago': '{{n}}分前', 'minute ago_one': '{{count}}分前',
'minute ago_other': '{{count}}分前',
'n m': '{{n}}分', 'n m': '{{n}}分',
'n hours ago': '{{n}}時間前', 'hour ago_one': '{{count}}時間前',
'hour ago_other': '{{count}}時間前',
'n h': '{{n}}時', 'n h': '{{n}}時',
'n days ago': '{{n}}日前', 'day ago_one': '{{count}}日前',
'day ago_other': '{{count}}日前',
'n d': '{{n}}日', 'n d': '{{n}}日',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'フォローする', Follow: 'フォローする',

View file

@ -15,11 +15,14 @@ export default {
followings: '팔로잉', followings: '팔로잉',
reposted: '리포스트', reposted: '리포스트',
'just now': '방금 전', 'just now': '방금 전',
'n minutes ago': '{{n}}분 전', 'minute ago_one': '{{count}}분 전',
'minute ago_other': '{{count}}분 전',
'n m': '{{n}}분', 'n m': '{{n}}분',
'n hours ago': '{{n}}시간 전', 'hour ago_one': '{{count}}시간 전',
'hour ago_other': '{{count}}시간 전',
'n h': '{{n}}시간', 'n h': '{{n}}시간',
'n days ago': '{{n}}일 전', 'day ago_one': '{{count}}일 전',
'day ago_other': '{{count}}일 전',
'n d': '{{n}}일', 'n d': '{{n}}일',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: '팔로우', Follow: '팔로우',

View file

@ -15,11 +15,14 @@ export default {
followings: 'niżej wymienionych', followings: 'niżej wymienionych',
reposted: 'Udostępnił', reposted: 'Udostępnił',
'just now': 'teraz', 'just now': 'teraz',
'n minutes ago': '{{n}} m', 'minute ago_one': '{{count}} minutę temu',
'minute ago_other': '{{count}} minut temu',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': '{{n}} g', 'hour ago_one': '{{count}} godzinę temu',
'hour ago_other': '{{count}} godzin temu',
'n h': '{{n}}h', 'n h': '{{n}}h',
'n days ago': '{{n}} d ', 'day ago_one': '{{count}} dzień temu',
'day ago_other': '{{count}} dni temu',
'n d': '{{n}}d', 'n d': '{{n}}d',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Obserwuj', Follow: 'Obserwuj',

View file

@ -15,11 +15,14 @@ export default {
followings: 'Seguidos', followings: 'Seguidos',
reposted: 'Repostado', reposted: 'Repostado',
'just now': 'agora mesmo', 'just now': 'agora mesmo',
'n minutes ago': '{{n}} minutos atrás', 'minute ago_one': '{{count}} minuto atrás',
'minute ago_other': '{{count}} minutos atrás',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': '{{n}} horas atrás', 'hour ago_one': '{{count}} hora atrás',
'hour ago_other': '{{count}} horas atrás',
'n h': '{{n}}h', 'n h': '{{n}}h',
'n days ago': '{{n}} dias atrás', 'day ago_one': '{{count}} dia atrás',
'day ago_other': '{{count}} dias atrás',
'n d': '{{n}}d', 'n d': '{{n}}d',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Seguir', Follow: 'Seguir',

View file

@ -16,11 +16,14 @@ export default {
followings: 'seguidos', followings: 'seguidos',
reposted: 'repostado', reposted: 'repostado',
'just now': 'agora mesmo', 'just now': 'agora mesmo',
'n minutes ago': '{{n}} minutos atrás', 'minute ago_one': '{{count}} minuto atrás',
'minute ago_other': '{{count}} minutos atrás',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': '{{n}} horas atrás', 'hour ago_one': '{{count}} hora atrás',
'hour ago_other': '{{count}} horas atrás',
'n h': '{{n}}h', 'n h': '{{n}}h',
'n days ago': '{{n}} dias atrás', 'day ago_one': '{{count}} dia atrás',
'day ago_other': '{{count}} dias atrás',
'n d': '{{n}}d', 'n d': '{{n}}d',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Seguir', Follow: 'Seguir',

View file

@ -16,11 +16,14 @@ export default {
followings: 'подписки', followings: 'подписки',
reposted: 'репостнул', reposted: 'репостнул',
'just now': 'только что', 'just now': 'только что',
'n minutes ago': '{{n}} минут назад', 'minute ago_one': '{{count}} минуту назад',
'minute ago_other': '{{count}} минут назад',
'n m': '{{n}}м', 'n m': '{{n}}м',
'n hours ago': '{{n}} часов назад', 'hour ago_one': '{{count}} час назад',
'hour ago_other': '{{count}} часов назад',
'n h': '{{n}}ч', 'n h': '{{n}}ч',
'n days ago': '{{n}} дней назад', 'day ago_one': '{{count}} день назад',
'day ago_other': '{{count}} дней назад',
'n d': '{{n}}д', 'n d': '{{n}}д',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'Подписаться', Follow: 'Подписаться',

View file

@ -15,11 +15,14 @@ export default {
followings: 'กำลังติดตาม', followings: 'กำลังติดตาม',
reposted: 'รีโพสต์', reposted: 'รีโพสต์',
'just now': 'เมื่อสักครู่', 'just now': 'เมื่อสักครู่',
'n minutes ago': '{{n}} นาทีที่แล้ว', 'minute ago_one': '{{count}} นาทีที่แล้ว',
'minute ago_other': '{{count}} นาทีที่แล้ว',
'n m': '{{n}}น', 'n m': '{{n}}น',
'n hours ago': '{{n}} ชั่วโมงที่แล้ว', 'hour ago_one': '{{count}} ชั่วโมงที่แล้ว',
'hour ago_other': '{{count}} ชั่วโมงที่แล้ว',
'n h': '{{n}}ชม', 'n h': '{{n}}ชม',
'n days ago': '{{n}} วันที่แล้ว', 'day ago_one': '{{count}} วันที่แล้ว',
'day ago_other': '{{count}} วันที่แล้ว',
'n d': '{{n}}วัน', 'n d': '{{n}}วัน',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: 'ติดตาม', Follow: 'ติดตาม',

View file

@ -15,11 +15,14 @@ export default {
followings: '关注', followings: '关注',
reposted: '转发', reposted: '转发',
'just now': '刚刚', 'just now': '刚刚',
'n minutes ago': '{{n}} 分钟前', 'minute ago_one': '{{count}} 分钟前',
'minute ago_other': '{{count}} 分钟前',
'n m': '{{n}}分', 'n m': '{{n}}分',
'n hours ago': '{{n}} 小时前', 'hour ago_one': '{{count}} 小时前',
'hour ago_other': '{{count}} 小时前',
'n h': '{{n}}时', 'n h': '{{n}}时',
'n days ago': '{{n}} 天前', 'day ago_one': '{{count}} 天前',
'day ago_other': '{{count}} 天前',
'n d': '{{n}}天', 'n d': '{{n}}天',
date: '{{timestamp, date}}', date: '{{timestamp, date}}',
Follow: '关注', Follow: '关注',