Browse Source

refactor: 💨

imwald
codytseng 1 year ago
parent
commit
76ebc7e4a5
  1. 2
      src/renderer/src/components/FormattedTimestamp/index.tsx
  2. 1
      src/renderer/src/i18n/en.ts
  3. 1
      src/renderer/src/i18n/zh.ts

2
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 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')
} }

1
src/renderer/src/i18n/en.ts

@ -12,7 +12,6 @@ export default {
Following: 'Following', Following: 'Following',
reposted: 'reposted', reposted: 'reposted',
'just now': 'just now', 'just now': 'just now',
'n s': '{{n}}s',
'n minutes ago': '{{n}} minutes ago', 'n minutes ago': '{{n}} minutes ago',
'n m': '{{n}}m', 'n m': '{{n}}m',
'n hours ago': '{{n}} hours ago', 'n hours ago': '{{n}} hours ago',

1
src/renderer/src/i18n/zh.ts

@ -12,7 +12,6 @@ export default {
Following: '关注', Following: '关注',
reposted: '转发', reposted: '转发',
'just now': '刚刚', 'just now': '刚刚',
'n s': '{{n}}秒',
'n minutes ago': '{{n}} 分钟前', 'n minutes ago': '{{n}} 分钟前',
'n m': '{{n}}分', 'n m': '{{n}}分',
'n hours ago': '{{n}} 小时前', 'n hours ago': '{{n}} 小时前',

Loading…
Cancel
Save