Browse Source

update notification_list

jam411 3 years ago
parent
commit
4cc7aa52e4

+ 5 - 0
packages/app/public/static/locales/en_US/commons.json

@@ -42,6 +42,11 @@
     "description": "Description"
   },
 
+  "in_app_notification": {
+    "see_all": "See All",
+    "mark_all_as_read": "Mark all as read"
+  },
+
   "personal_dropdown": {
     "home": "Home",
     "settings": "Settings",

+ 5 - 0
packages/app/public/static/locales/ja_JP/commons.json

@@ -42,6 +42,11 @@
     "description": "概要"
   },
 
+  "in_app_notification": {
+    "see_all": "通知一覧を見る",
+    "mark_all_as_read": "全て既読にする"
+  },
+
   "personal_dropdown": {
     "home": "ホーム",
     "settings": "設定",

+ 5 - 0
packages/app/public/static/locales/zh_CN/commons.json

@@ -42,6 +42,11 @@
     "description": "Description"
   },
 
+  "in_app_notification": {
+    "see_all": "查看通知列表",
+    "mark_all_as_read" : "标记为已读"
+  },
+
   "personal_dropdown": {
     "home": "家",
     "settings": "设置",

+ 1 - 1
packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

@@ -20,7 +20,7 @@ const logger = loggerFactory('growi:InAppNotificationDropdown');
 
 
 export const InAppNotificationDropdown = (): JSX.Element => {
-  const { t } = useTranslation();
+  const { t } = useTranslation('commons');
 
   const [isOpen, setIsOpen] = useState(false);
   const limit = 6;