Shun Miyazawa 4 лет назад
Родитель
Сommit
0faf023294

+ 3 - 0
packages/app/resource/locales/en_US/admin/admin.json

@@ -514,5 +514,8 @@
       "force_update_parents_label": "Forcibly add missing users",
       "force_update_parents_description": "Enable this option to force the addition of missing users to the ancestor groups if they exist after changing a parent group."
     }
+  },
+  "audit_log_management": {
+    "select_action": "Select Action"
   }
 }

+ 3 - 0
packages/app/resource/locales/ja_JP/admin/admin.json

@@ -513,5 +513,8 @@
       "force_update_parents_label": "強制的に足りないユーザーを追加する",
       "force_update_parents_description": "このオプションを有効化すると、親グループ変更後に祖先グループに足りないユーザーが存在した場合にそれらのユーザーを強制的に追加することができます"
     }
+  },
+  "audit_log_management": {
+    "select_action": "アクションを選択"
   }
 }

+ 3 - 0
packages/app/resource/locales/zh_CN/admin/admin.json

@@ -523,5 +523,8 @@
       "force_update_parents_label": "强行添加失踪的用户",
       "force_update_parents_description": "激活这个选项,如果在父组改变后,在祖先组中有缺失的用户,可以强制添加这些用户"
     }
+  },
+  "audit_log_management": {
+    "select_action": "选择行动"
   }
 }

+ 10 - 2
packages/app/src/components/Admin/AuditLogManagement.tsx

@@ -16,11 +16,12 @@ type SelectQueryDropdownProps = {
 }
 
 const SelectQueryDropdown: FC<SelectQueryDropdownProps> = (props: SelectQueryDropdownProps) => {
+  const { t } = useTranslation();
   return (
     <div className="btn-group mr-2 mb-3">
       <div className="dropdown">
         <button className="btn btn-outline-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown">
-          {t}
+          {t(`admin:audit_log_management.${props.dropdownLabel}`)}
         </button>
         <ul className="dropdown-menu" aria-labelledby="dropdownMenuButton">
           {
@@ -39,6 +40,10 @@ const SelectQueryDropdown: FC<SelectQueryDropdownProps> = (props: SelectQueryDro
   );
 };
 
+const SelectQueryDropdownLabel = {
+  SELECT_ACTION: 'select_action',
+} as const;
+
 const PAGING_LIMIT = 10;
 
 export const AuditLogManagement: FC = () => {
@@ -68,7 +73,10 @@ export const AuditLogManagement: FC = () => {
         )
         : (
           <>
-            <SelectQueryDropdown dropdownLabel="Select Action" dropdownItemList={AllSupportedActionType} />
+            <SelectQueryDropdown
+              dropdownLabel={SelectQueryDropdownLabel.SELECT_ACTION}
+              dropdownItemList={AllSupportedActionType}
+            />
 
             <ActivityTable activityList={activityList} />
             <PaginationWrapper