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