From 36f6d810ac112149e8a831330fe0f02099a5e90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=20Daniel=20=E2=9A=A1=EF=B8=8F?= Date: Sun, 14 Dec 2025 20:09:41 -0500 Subject: [PATCH] fix: correct timestamp pluralization for singular forms (#694) Co-authored-by: The Daniel --- src/components/FormattedTimestamp/index.tsx | 6 +++--- src/i18n/locales/ar.ts | 9 ++++++--- src/i18n/locales/de.ts | 9 ++++++--- src/i18n/locales/en.ts | 9 ++++++--- src/i18n/locales/es.ts | 9 ++++++--- src/i18n/locales/fa.ts | 9 ++++++--- src/i18n/locales/fr.ts | 9 ++++++--- src/i18n/locales/hi.ts | 9 ++++++--- src/i18n/locales/hu.ts | 9 ++++++--- src/i18n/locales/it.ts | 9 ++++++--- src/i18n/locales/ja.ts | 9 ++++++--- src/i18n/locales/ko.ts | 9 ++++++--- src/i18n/locales/pl.ts | 9 ++++++--- src/i18n/locales/pt-BR.ts | 9 ++++++--- src/i18n/locales/pt-PT.ts | 9 ++++++--- src/i18n/locales/ru.ts | 9 ++++++--- src/i18n/locales/th.ts | 9 ++++++--- src/i18n/locales/zh.ts | 9 ++++++--- 18 files changed, 105 insertions(+), 54 deletions(-) diff --git a/src/components/FormattedTimestamp/index.tsx b/src/components/FormattedTimestamp/index.tsx index ebaef09..ee4aaa1 100644 --- a/src/components/FormattedTimestamp/index.tsx +++ b/src/components/FormattedTimestamp/index.tsx @@ -35,17 +35,17 @@ function FormattedTimestampContent({ const diffDay = now.diff(time, 'day') 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') 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') 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') diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index 67bb40c..24ce7e5 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -16,11 +16,14 @@ export default { followings: 'المتابعين', reposted: 'أُعيد نشره', 'just now': 'الآن', - 'n minutes ago': 'منذ {{n}} دقيقة', + 'minute ago_one': 'منذ {{count}} دقيقة', + 'minute ago_other': 'منذ {{count}} دقيقة', 'n m': '{{n}} دقيقة', - 'n hours ago': 'منذ {{n}} ساعة', + 'hour ago_one': 'منذ {{count}} ساعة', + 'hour ago_other': 'منذ {{count}} ساعة', 'n h': '{{n}} ساعة', - 'n days ago': 'منذ {{n}} يوم', + 'day ago_one': 'منذ {{count}} يوم', + 'day ago_other': 'منذ {{count}} يوم', 'n d': '{{n}} يوم', date: '{{timestamp, date}}', Follow: 'متابعة', diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index a72da86..fc8c7d3 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -16,11 +16,14 @@ export default { followings: 'Folgekonten', reposted: 'erneut gepostet', '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 hours ago': 'vor {{n}} Stunden', + 'hour ago_one': 'vor {{count}} Stunde', + 'hour ago_other': 'vor {{count}} Stunden', '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', date: '{{timestamp, date}}', Follow: 'Folgen', diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index effe619..9b14135 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -15,11 +15,14 @@ export default { followings: 'followings', reposted: 'reposted', '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 hours ago': '{{n}} hours ago', + 'hour ago_one': '{{count}} hour ago', + 'hour ago_other': '{{count}} hours ago', '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', date: '{{timestamp, date}}', Follow: 'Follow', diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index e2c0c43..524e0e7 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -16,11 +16,14 @@ export default { followings: 'siguiendo', reposted: 'retransmitido', '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 hours ago': 'hace {{n}} horas', + 'hour ago_one': 'hace {{count}} hora', + 'hour ago_other': 'hace {{count}} horas', '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', date: '{{timestamp, date}}', Follow: 'Seguir', diff --git a/src/i18n/locales/fa.ts b/src/i18n/locales/fa.ts index eae6b5c..cca8492 100644 --- a/src/i18n/locales/fa.ts +++ b/src/i18n/locales/fa.ts @@ -15,11 +15,14 @@ export default { followings: 'دنبال شونده‌ها', reposted: 'بازنشر شده', 'just now': 'همین الان', - 'n minutes ago': '{{n}} دقیقه پیش', + 'minute ago_one': '{{count}} دقیقه پیش', + 'minute ago_other': '{{count}} دقیقه پیش', 'n m': '{{n}}د', - 'n hours ago': '{{n}} ساعت پیش', + 'hour ago_one': '{{count}} ساعت پیش', + 'hour ago_other': '{{count}} ساعت پیش', 'n h': '{{n}}س', - 'n days ago': '{{n}} روز پیش', + 'day ago_one': '{{count}} روز پیش', + 'day ago_other': '{{count}} روز پیش', 'n d': '{{n}}ر', date: '{{timestamp, date}}', Follow: 'دنبال کردن', diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index b40aedd..5b2e8a7 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -16,11 +16,14 @@ export default { followings: 'abonnements', reposted: 'republié', '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 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 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', date: '{{timestamp, date}}', Follow: 'Suivre', diff --git a/src/i18n/locales/hi.ts b/src/i18n/locales/hi.ts index 50c6f39..ca27eb5 100644 --- a/src/i18n/locales/hi.ts +++ b/src/i18n/locales/hi.ts @@ -15,11 +15,14 @@ export default { followings: 'फॉलोइंग', reposted: 'रीपोस्ट किया', 'just now': 'अभी', - 'n minutes ago': '{{n}} मिनट पहले', + 'minute ago_one': '{{count}} मिनट पहले', + 'minute ago_other': '{{count}} मिनट पहले', 'n m': '{{n}}मि', - 'n hours ago': '{{n}} घंटे पहले', + 'hour ago_one': '{{count}} घंटा पहले', + 'hour ago_other': '{{count}} घंटे पहले', 'n h': '{{n}}घं', - 'n days ago': '{{n}} दिन पहले', + 'day ago_one': '{{count}} दिन पहले', + 'day ago_other': '{{count}} दिन पहले', 'n d': '{{n}}दि', date: '{{timestamp, date}}', Follow: 'फॉलो करें', diff --git a/src/i18n/locales/hu.ts b/src/i18n/locales/hu.ts index 435a266..c5173e3 100644 --- a/src/i18n/locales/hu.ts +++ b/src/i18n/locales/hu.ts @@ -15,11 +15,14 @@ export default { followings: 'követések', reposted: 'újraposztolta', 'just now': 'épp most', - 'n minutes ago': '{{n}} perce', + 'minute ago_one': '{{count}} perce', + 'minute ago_other': '{{count}} perce', '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 days ago': '{{n}} napja', + 'day ago_one': '{{count}} napja', + 'day ago_other': '{{count}} napja', 'n d': '{{n}}n', date: '{{timestamp, date}}', Follow: 'Követés', diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index c116141..95e4b6b 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -15,11 +15,14 @@ export default { followings: 'seguiti', reposted: 'ripubblica', '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 hours ago': '{{n}} ore fa', + 'hour ago_one': '{{count}} ora fa', + 'hour ago_other': '{{count}} ore fa', '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', date: '{{timestamp, data}}', Follow: 'Segui', diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index 9141d13..aae1c8f 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -16,11 +16,14 @@ export default { followings: 'フォロー', reposted: 'リポスト済み', 'just now': 'たった今', - 'n minutes ago': '{{n}}分前', + 'minute ago_one': '{{count}}分前', + 'minute ago_other': '{{count}}分前', 'n m': '{{n}}分', - 'n hours ago': '{{n}}時間前', + 'hour ago_one': '{{count}}時間前', + 'hour ago_other': '{{count}}時間前', 'n h': '{{n}}時', - 'n days ago': '{{n}}日前', + 'day ago_one': '{{count}}日前', + 'day ago_other': '{{count}}日前', 'n d': '{{n}}日', date: '{{timestamp, date}}', Follow: 'フォローする', diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index 7684c88..34680c2 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -15,11 +15,14 @@ export default { followings: '팔로잉', reposted: '리포스트', 'just now': '방금 전', - 'n minutes ago': '{{n}}분 전', + 'minute ago_one': '{{count}}분 전', + 'minute ago_other': '{{count}}분 전', 'n m': '{{n}}분', - 'n hours ago': '{{n}}시간 전', + 'hour ago_one': '{{count}}시간 전', + 'hour ago_other': '{{count}}시간 전', 'n h': '{{n}}시간', - 'n days ago': '{{n}}일 전', + 'day ago_one': '{{count}}일 전', + 'day ago_other': '{{count}}일 전', 'n d': '{{n}}일', date: '{{timestamp, date}}', Follow: '팔로우', diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index f3e48d1..b6ffddf 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -15,11 +15,14 @@ export default { followings: 'niżej wymienionych', reposted: 'Udostępnił', '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 hours ago': '{{n}} g', + 'hour ago_one': '{{count}} godzinę temu', + 'hour ago_other': '{{count}} godzin temu', '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', date: '{{timestamp, date}}', Follow: 'Obserwuj', diff --git a/src/i18n/locales/pt-BR.ts b/src/i18n/locales/pt-BR.ts index 7f5397c..37356d0 100644 --- a/src/i18n/locales/pt-BR.ts +++ b/src/i18n/locales/pt-BR.ts @@ -15,11 +15,14 @@ export default { followings: 'Seguidos', reposted: 'Repostado', '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 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 days ago': '{{n}} dias atrás', + 'day ago_one': '{{count}} dia atrás', + 'day ago_other': '{{count}} dias atrás', 'n d': '{{n}}d', date: '{{timestamp, date}}', Follow: 'Seguir', diff --git a/src/i18n/locales/pt-PT.ts b/src/i18n/locales/pt-PT.ts index 00dcaff..09b8e25 100644 --- a/src/i18n/locales/pt-PT.ts +++ b/src/i18n/locales/pt-PT.ts @@ -16,11 +16,14 @@ export default { followings: 'seguidos', reposted: 'repostado', '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 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 days ago': '{{n}} dias atrás', + 'day ago_one': '{{count}} dia atrás', + 'day ago_other': '{{count}} dias atrás', 'n d': '{{n}}d', date: '{{timestamp, date}}', Follow: 'Seguir', diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index 188bd82..74f20ff 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -16,11 +16,14 @@ export default { followings: 'подписки', reposted: 'репостнул', 'just now': 'только что', - 'n minutes ago': '{{n}} минут назад', + 'minute ago_one': '{{count}} минуту назад', + 'minute ago_other': '{{count}} минут назад', 'n m': '{{n}}м', - 'n hours ago': '{{n}} часов назад', + 'hour ago_one': '{{count}} час назад', + 'hour ago_other': '{{count}} часов назад', 'n h': '{{n}}ч', - 'n days ago': '{{n}} дней назад', + 'day ago_one': '{{count}} день назад', + 'day ago_other': '{{count}} дней назад', 'n d': '{{n}}д', date: '{{timestamp, date}}', Follow: 'Подписаться', diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index 620b1b6..18c614c 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -15,11 +15,14 @@ export default { followings: 'กำลังติดตาม', reposted: 'รีโพสต์', 'just now': 'เมื่อสักครู่', - 'n minutes ago': '{{n}} นาทีที่แล้ว', + 'minute ago_one': '{{count}} นาทีที่แล้ว', + 'minute ago_other': '{{count}} นาทีที่แล้ว', 'n m': '{{n}}น', - 'n hours ago': '{{n}} ชั่วโมงที่แล้ว', + 'hour ago_one': '{{count}} ชั่วโมงที่แล้ว', + 'hour ago_other': '{{count}} ชั่วโมงที่แล้ว', 'n h': '{{n}}ชม', - 'n days ago': '{{n}} วันที่แล้ว', + 'day ago_one': '{{count}} วันที่แล้ว', + 'day ago_other': '{{count}} วันที่แล้ว', 'n d': '{{n}}วัน', date: '{{timestamp, date}}', Follow: 'ติดตาม', diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index e88f4ce..cf3d1c8 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -15,11 +15,14 @@ export default { followings: '关注', reposted: '转发', 'just now': '刚刚', - 'n minutes ago': '{{n}} 分钟前', + 'minute ago_one': '{{count}} 分钟前', + 'minute ago_other': '{{count}} 分钟前', 'n m': '{{n}}分', - 'n hours ago': '{{n}} 小时前', + 'hour ago_one': '{{count}} 小时前', + 'hour ago_other': '{{count}} 小时前', 'n h': '{{n}}时', - 'n days ago': '{{n}} 天前', + 'day ago_one': '{{count}} 天前', + 'day ago_other': '{{count}} 天前', 'n d': '{{n}}天', date: '{{timestamp, date}}', Follow: '关注',