Skip to content

Let's use AI to Earn!

feat: i18

gaoSir99d40aa2bbe2
diff --git a/@types/resources.d.ts b/@types/resources.d.ts
index 3a58c5ee..c2d18b53 100644
--- a/@types/resources.d.ts
+++ b/@types/resources.d.ts
@@ -2191,7 +2191,16 @@ interface Resources {
"both": "发布即表示您同意 TikTok 的品牌内容政策音乐使用确认。"
}
},
- "previewvideo": "预览视频"
+ "previewvideo": "预览视频",
+ "record": {
+ "metrics": {
+ "views": "查看数",
+ "comments": "评论数",
+ "likes": "点赞数",
+ "shares": "分享数"
+ },
+ "viewWork": "查看作品"
+ }
},
"route": {
"home": "首页",
diff --git a/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/RecordCore.tsx b/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/RecordCore.tsx
index 634b39a0..9b8a0c41 100644
--- a/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/RecordCore.tsx
+++ b/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/RecordCore.tsx
@@ -147,23 +147,23 @@ const RecordCore = memo(
const recordInfo = useMemo(() => {
return [
{
- label: "查看数",
+ label: t("record.metrics.views"),
icon: <EyeOutlined />,
},
{
- label: "评论数",
+ label: t("record.metrics.comments"),
icon: <MessageOutlined />,
},
{
- label: "点赞数",
+ label: t("record.metrics.likes"),
icon: <LikeOutlined />,
},
- {
- label: "分享数",
+ {
+ label: t("record.metrics.shares"),
icon: <ShareAltOutlined />,
},
];
- }, []);
+ }, [t]);
return (
<Popover
@@ -253,7 +253,7 @@ const RecordCore = memo(
window.open(publishRecord.workLink, "_blank");
}}
>
- 查看作品
+ {t("record.viewWork")}
</Button>
)}
diff --git a/src/app/i18n/locales/en/publish.json b/src/app/i18n/locales/en/publish.json
index fdf96cf2..d6078cd6 100644
--- a/src/app/i18n/locales/en/publish.json
+++ b/src/app/i18n/locales/en/publish.json
@@ -210,5 +210,14 @@
"both": "By posting, you agree to TikTok's Branded Content Policy and Music Usage Confirmation."
}
},
- "previewvideo": "Preview Video"
+ "previewvideo": "Preview Video",
+ "record": {
+ "metrics": {
+ "views": "Views",
+ "comments": "Comments",
+ "likes": "Likes",
+ "shares": "Shares"
+ },
+ "viewWork": "View Work"
+ }
}
diff --git a/src/app/i18n/locales/zh-CN/publish.json b/src/app/i18n/locales/zh-CN/publish.json
index 507aac8b..320c750d 100644
--- a/src/app/i18n/locales/zh-CN/publish.json
+++ b/src/app/i18n/locales/zh-CN/publish.json
@@ -211,5 +211,14 @@
"both": "发布即表示您同意 TikTok 的品牌内容政策音乐使用确认。"
}
},
- "previewvideo": "预览视频"
+ "previewvideo": "预览视频",
+ "record": {
+ "metrics": {
+ "views": "查看数",
+ "comments": "评论数",
+ "likes": "点赞数",
+ "shares": "分享数"
+ },
+ "viewWork": "查看作品"
+ }
}