Просмотр исходного кода

Add title for activity log in different languages

arvid-e 5 месяцев назад
Родитель
Сommit
84536bc101

+ 3 - 2
apps/app/public/static/locales/en_US/translation.json

@@ -999,7 +999,8 @@
   },
   },
   "user_home_page": {
   "user_home_page": {
     "bookmarks": "Bookmarks",
     "bookmarks": "Bookmarks",
-    "recently_created": "Recently Created"
+    "recently_created": "Recently Created",
+    "recent_activity": "Recent Activity"
   },
   },
   "bookmark_folder": {
   "bookmark_folder": {
     "bookmark_folder": "bookmark folder",
     "bookmark_folder": "bookmark folder",
@@ -1062,4 +1063,4 @@
     "skipped-toaster": "Skipped synchronizing since the editor is not activated. Please open the editor and try again.",
     "skipped-toaster": "Skipped synchronizing since the editor is not activated. Please open the editor and try again.",
     "error-toaster": "Synchronization of the latest text failed"
     "error-toaster": "Synchronization of the latest text failed"
   }
   }
-}
+}

+ 3 - 2
apps/app/public/static/locales/fr_FR/translation.json

@@ -993,7 +993,8 @@
   },
   },
   "user_home_page": {
   "user_home_page": {
     "bookmarks": "Favoris",
     "bookmarks": "Favoris",
-    "recently_created": "Page récentes"
+    "recently_created": "Page récentes",
+    "recent_activity": "Activité récente"
   },
   },
   "bookmark_folder": {
   "bookmark_folder": {
     "bookmark_folder": "dossier de favoris",
     "bookmark_folder": "dossier de favoris",
@@ -1053,4 +1054,4 @@
     "skipped-toaster": "L'éditeur n'est pas actif. Synchronisation annulée.",
     "skipped-toaster": "L'éditeur n'est pas actif. Synchronisation annulée.",
     "error-toaster": "Synchronisation échouée"
     "error-toaster": "Synchronisation échouée"
   }
   }
-}
+}

+ 3 - 2
apps/app/public/static/locales/ja_JP/translation.json

@@ -1032,7 +1032,8 @@
   },
   },
   "user_home_page": {
   "user_home_page": {
     "bookmarks": "ブックマーク",
     "bookmarks": "ブックマーク",
-    "recently_created": "最近作成したページ"
+    "recently_created": "最近作成したページ",
+    "recent_activity": "最近のアクティビティ"
   },
   },
   "bookmark_folder": {
   "bookmark_folder": {
     "bookmark_folder": "ブックマークフォルダ",
     "bookmark_folder": "ブックマークフォルダ",
@@ -1095,4 +1096,4 @@
     "skipped-toaster": "エディターがアクティブではないため、同期をスキップしました。エディターを開いて再度お試しください。",
     "skipped-toaster": "エディターがアクティブではないため、同期をスキップしました。エディターを開いて再度お試しください。",
     "error-toaster": "最新の本文の同期に失敗しました"
     "error-toaster": "最新の本文の同期に失敗しました"
   }
   }
-}
+}

+ 3 - 2
apps/app/public/static/locales/ko_KR/translation.json

@@ -959,7 +959,8 @@
   },
   },
   "user_home_page": {
   "user_home_page": {
     "bookmarks": "북마크",
     "bookmarks": "북마크",
-    "recently_created": "최근 생성됨"
+    "recently_created": "최근 생성됨",
+    "recent_activity": "최근 활동"
   },
   },
   "bookmark_folder": {
   "bookmark_folder": {
     "bookmark_folder": "북마크 폴더",
     "bookmark_folder": "북마크 폴더",
@@ -1022,4 +1023,4 @@
     "skipped-toaster": "편집기가 활성화되지 않아 동기화 건너뜀. 편집기를 열고 다시 시도하십시오.",
     "skipped-toaster": "편집기가 활성화되지 않아 동기화 건너뜀. 편집기를 열고 다시 시도하십시오.",
     "error-toaster": "최신 텍스트 동기화 실패"
     "error-toaster": "최신 텍스트 동기화 실패"
   }
   }
-}
+}

+ 3 - 2
apps/app/public/static/locales/zh_CN/translation.json

@@ -1004,7 +1004,8 @@
   },
   },
   "user_home_page": {
   "user_home_page": {
     "bookmarks": "书签",
     "bookmarks": "书签",
-    "recently_created": "最近创建页面"
+    "recently_created": "最近创建页面",
+    "recent_activity": "最近动态"
   },
   },
   "bookmark_folder": {
   "bookmark_folder": {
     "bookmark_folder": "书签文件夹",
     "bookmark_folder": "书签文件夹",
@@ -1067,4 +1068,4 @@
     "skipped-toaster": "由于编辑器未激活,因此跳过同步。 请打开编辑器并重试。",
     "skipped-toaster": "由于编辑器未激活,因此跳过同步。 请打开编辑器并重试。",
     "error-toaster": "同步最新文本失败"
     "error-toaster": "同步最新文本失败"
   }
   }
-}
+}

+ 5 - 0
apps/app/src/client/components/UsersHomepageFooter.tsx

@@ -46,6 +46,11 @@ export const UsersHomepageFooter = (props: UsersHomepageFooterProps): JSX.Elemen
         <div id="user-created-list" className={`page-list ${styles['page-list']}`}>
         <div id="user-created-list" className={`page-list ${styles['page-list']}`}>
           <RecentCreated userId={creatorId} />
           <RecentCreated userId={creatorId} />
         </div>
         </div>
+
+        <h2 id="user-created-list" className="grw-user-page-header border-bottom pb-2 mb-3 d-flex">
+          <span className="growi-custom-icons me-1">recently_created</span>
+          {t('user_home_page.recent_activity')}
+        </h2>
         <div id="user-created-list" className={`page-list ${styles['page-list']}`}>
         <div id="user-created-list" className={`page-list ${styles['page-list']}`}>
           <RecentActivity userId={creatorId} />
           <RecentActivity userId={creatorId} />
         </div>
         </div>