diff --git a/public/locales/zh/dashboard.json b/public/locales/zh/dashboard.json index 2540b2e4..051b2dfa 100644 --- a/public/locales/zh/dashboard.json +++ b/public/locales/zh/dashboard.json @@ -195,6 +195,6 @@ "Comments": "评论", "You can subscribe to comments through an RSS reader to receive timely reminders.": "你可以通过 RSS 阅读器订阅评论,以便及时收到提醒。", "Subscription address:": "订阅地址:", - "comment on your {{type}} {{toTitle}}" : "评论了你的{{type}}「{{toTitle}}」", + "comment on your" : "评论了你的{{type}}「{{toTitle}}」", "{{newCount}} new comments" : "{{newCount}} 条新评论" } \ No newline at end of file diff --git a/src/pages/dashboard/[subdomain]/comments.tsx b/src/pages/dashboard/[subdomain]/comments.tsx index b7a3a2f3..55e83875 100644 --- a/src/pages/dashboard/[subdomain]/comments.tsx +++ b/src/pages/dashboard/[subdomain]/comments.tsx @@ -1,5 +1,5 @@ import { GetServerSideProps } from "next" -import { useTranslation } from "next-i18next" +import { Trans, useTranslation } from "next-i18next" import { useRouter } from "next/router" import type { ReactElement } from "react" import { Virtuoso } from "react-virtuoso" @@ -52,7 +52,7 @@ export default function CommentsPage() {

{t("Subscription address:")}{" "} - + {feedUrl}

@@ -95,12 +95,27 @@ export default function CommentsPage() {
{name}{" "} - {t("comment on your {{type}} {{toTitle}}", { - type: t(type || "", { - ns: "common", - }), - toTitle: toTitle, - })} + + . + + ), + }} + ns="dashboard" + /> :