From 76ebc7e4a53c6f15af0ef3b84ea02fb027b85ddc Mon Sep 17 00:00:00 2001 From: codytseng Date: Thu, 12 Dec 2024 17:04:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/components/FormattedTimestamp/index.tsx | 2 +- src/renderer/src/i18n/en.ts | 1 - src/renderer/src/i18n/zh.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderer/src/components/FormattedTimestamp/index.tsx b/src/renderer/src/components/FormattedTimestamp/index.tsx index 183bb04..6c3b521 100644 --- a/src/renderer/src/components/FormattedTimestamp/index.tsx +++ b/src/renderer/src/components/FormattedTimestamp/index.tsx @@ -32,5 +32,5 @@ export function FormattedTimestamp({ return short ? t('n m', { n: diffMinute }) : t('n minutes ago', { n: diffMinute }) } - return short ? t('n s', { n: now.diff(time, 'second') }) : t('just now') + return t('just now') } diff --git a/src/renderer/src/i18n/en.ts b/src/renderer/src/i18n/en.ts index b1339b6..6a3fa06 100644 --- a/src/renderer/src/i18n/en.ts +++ b/src/renderer/src/i18n/en.ts @@ -12,7 +12,6 @@ export default { Following: 'Following', reposted: 'reposted', 'just now': 'just now', - 'n s': '{{n}}s', 'n minutes ago': '{{n}} minutes ago', 'n m': '{{n}}m', 'n hours ago': '{{n}} hours ago', diff --git a/src/renderer/src/i18n/zh.ts b/src/renderer/src/i18n/zh.ts index d6bf085..1066ec0 100644 --- a/src/renderer/src/i18n/zh.ts +++ b/src/renderer/src/i18n/zh.ts @@ -12,7 +12,6 @@ export default { Following: '关注', reposted: '转发', 'just now': '刚刚', - 'n s': '{{n}}秒', 'n minutes ago': '{{n}} 分钟前', 'n m': '{{n}}分', 'n hours ago': '{{n}} 小时前',