+
diff --git a/components/AdminPage.js b/components/AdminPage.js
index 819575b..b3ba3ac 100644
--- a/components/AdminPage.js
+++ b/components/AdminPage.js
@@ -2,6 +2,7 @@
// 管理后台:侧边栏布局(对齐上游 main 分支)
import { useState } from 'react';
+import { useTranslation } from 'react-i18next';
import { Icon } from './Icons';
import AdminReports from './admin/AdminReports';
import AdminUsers from './admin/AdminUsers';
@@ -12,22 +13,23 @@ import AdminCustomPages from './admin/AdminCustomPages';
import AdminCustomCss from './admin/AdminCustomCss';
const NAV = [
- { key: 'reports', label: '举报', icon: 'shieldAlert' },
- { key: 'users', label: '用户', icon: 'users' },
- { key: 'logs', label: '日志', icon: 'file' },
- { key: 'links', label: '友链', icon: 'link' },
- { key: 'settings', label: '论坛设置', icon: 'settings' },
- { key: 'custom', label: '自定义页面', icon: 'file' },
- { key: 'css', label: '自定义CSS', icon: 'file' },
+ { key: 'reports', labelKey: 'admin.reports', icon: 'shieldAlert' },
+ { key: 'users', labelKey: 'admin.users', icon: 'users' },
+ { key: 'logs', labelKey: 'admin.logs', icon: 'file' },
+ { key: 'links', labelKey: 'admin.links', icon: 'link' },
+ { key: 'settings', labelKey: 'admin.forumSettings', icon: 'settings' },
+ { key: 'custom', labelKey: 'admin.customPages', icon: 'file' },
+ { key: 'css', labelKey: 'admin.customCss', icon: 'file' },
];
export default function AdminPage() {
+ const { t } = useTranslation();
const [tab, setTab] = useState('reports');
return (
-
管理后台
+ {t('admin.title')}