diff --git a/apps/renderer/src/components/ui/datetime/index.tsx b/apps/renderer/src/components/ui/datetime/index.tsx index 7998ceacb..6a55a7a56 100644 --- a/apps/renderer/src/components/ui/datetime/index.tsx +++ b/apps/renderer/src/components/ui/datetime/index.tsx @@ -71,13 +71,18 @@ export const RelativeTime: FC<{ }, [props.date, displayAbsoluteTimeAfterDay, dateFormatTemplate]) const formated = dayjs(props.date).format(dateFormatTemplate) + const { t } = useTranslation("common") if (formated === relative) { return <>{relative} } return ( {/* https://github.com/radix-ui/primitives/issues/2248#issuecomment-2147056904 */} - {relative} + + {relative} + {t("words.space")} + {t("words.ago")} + {formated} diff --git a/locales/common/en.json b/locales/common/en.json index 5452d58cf..d75357d1b 100644 --- a/locales/common/en.json +++ b/locales/common/en.json @@ -11,6 +11,7 @@ "time.yesterday": "Yesterday", "tips.load-lng-error": "Failed to load language pack", "words.actions": "Actions", + "words.ago": "ago", "words.back": "Back", "words.copy": "Copy", "words.create": "Create", diff --git a/locales/common/zh-CN.json b/locales/common/zh-CN.json index 00d462cfe..8c3b8ad93 100644 --- a/locales/common/zh-CN.json +++ b/locales/common/zh-CN.json @@ -11,6 +11,7 @@ "time.yesterday": "昨天", "tips.load-lng-error": "加载语言包失败", "words.actions": "操作", + "words.ago": "前", "words.back": "返回", "words.copy": "复制", "words.edit": "编辑",