feat(i18n): integrate i18next for internationalization support and add initial translation setup
This commit is contained in:
@@ -39,21 +39,27 @@ function AppContent() {
|
||||
return (
|
||||
<Layout style={{ minHeight: '100vh' }}>
|
||||
<Header style={{ background: '#fff', padding: 0 }}>
|
||||
<Menu
|
||||
mode="horizontal"
|
||||
selectedKeys={[location.pathname]}
|
||||
style={{ fontSize: 16 }}
|
||||
>
|
||||
<Menu.Item key="/">
|
||||
<Link to="/">抓包</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="/database">
|
||||
<Link to="/database">数据库</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="/optimizer">
|
||||
<Link to="/optimizer">配装优化</Link>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
<Menu
|
||||
mode="horizontal"
|
||||
selectedKeys={[location.pathname]}
|
||||
style={{ fontSize: 16 }}
|
||||
items={[
|
||||
{
|
||||
key: '/',
|
||||
label: <Link to="/">{'抓包'}</Link>,
|
||||
},
|
||||
{
|
||||
key: '/database',
|
||||
label: <Link to="/database">{'数据库'}</Link>,
|
||||
},
|
||||
{
|
||||
key: '/optimizer',
|
||||
label: <Link to="/optimizer">{'配装优化'}</Link>,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
|
||||
</Header>
|
||||
<Content style={{ padding: 0, minHeight: 280 }}>
|
||||
<Routes>
|
||||
|
||||
Reference in New Issue
Block a user