aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FrontEnd/src/app/locales/en/translation.json4
-rw-r--r--FrontEnd/src/app/locales/zh/translation.json4
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx10
3 files changed, 14 insertions, 4 deletions
diff --git a/FrontEnd/src/app/locales/en/translation.json b/FrontEnd/src/app/locales/en/translation.json
index 414cc747..596b5217 100644
--- a/FrontEnd/src/app/locales/en/translation.json
+++ b/FrontEnd/src/app/locales/en/translation.json
@@ -106,7 +106,9 @@
"title": "Confirm Delete",
"prompt": "Are you sure to delete the post? This operation is not recoverable."
}
- }
+ },
+ "addHighlightSuccess": "Succeeded to add highlight.",
+ "addBookmarkSuccess": "Succeeded to add bookmark."
},
"user": {
"username": "username",
diff --git a/FrontEnd/src/app/locales/zh/translation.json b/FrontEnd/src/app/locales/zh/translation.json
index bbee28af..e15e177e 100644
--- a/FrontEnd/src/app/locales/zh/translation.json
+++ b/FrontEnd/src/app/locales/zh/translation.json
@@ -106,7 +106,9 @@
"title": "确认删除",
"prompt": "确定删除这个消息?这个操作不可撤销。"
}
- }
+ },
+ "addHighlightSuccess": "成功添加高光。",
+ "addBookmarkSuccess": "成功添加书签。"
},
"user": {
"username": "用户名",
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
index 21720601..7f5c8206 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
@@ -125,7 +125,10 @@ export default function TimelinePageTemplate<TManageItem>(
.put(name, user.token)
.then(() => {
pushAlert({
- message: "Succeeded to add bookmark!", // TODO: i18n
+ message: {
+ type: "i18n",
+ key: "timeline.addBookmarkSuccess",
+ },
type: "success",
});
});
@@ -138,7 +141,10 @@ export default function TimelinePageTemplate<TManageItem>(
.put(name, user.token)
.then(() => {
pushAlert({
- message: "Succeeded to add highlight!", // TODO: i18n
+ message: {
+ type: "i18n",
+ key: "timeline.addHighlightSuccess",
+ },
type: "success",
});
});