chore: languages settings

This commit is contained in:
jialin
2024-06-24 14:00:06 +08:00
parent de96c3d81d
commit 64683fdeb6
32 changed files with 417 additions and 156 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import { PageContainer } from '@ant-design/pro-components';
import { useIntl } from '@umijs/max';
import type { TabsProps } from 'antd';
import { Tabs } from 'antd';
import { useState } from 'react';
@@ -20,6 +21,8 @@ const items: TabsProps['items'] = [
const Resources = () => {
const [activeKey, setActiveKey] = useState('test');
const intl = useIntl();
const handleChangeTab = (key: string) => {
setActiveKey(key);
};
@@ -28,7 +31,7 @@ const Resources = () => {
<PageContainer
ghost
header={{
title: 'Resources'
title: intl.formatMessage({ id: 'resources.title' })
}}
extra={[]}
>