diff --git a/apps/web/i18n b/apps/web/i18n index b8585469..4d32a5f0 160000 --- a/apps/web/i18n +++ b/apps/web/i18n @@ -1 +1 @@ -Subproject commit b8585469303f31a568ebad3a73a07e180a91c1c0 +Subproject commit 4d32a5f0bbc3158b5e6f43c95595ec4e5078b8b6 diff --git a/apps/web/src/common/components/Antd/Pagination.tsx b/apps/web/src/common/components/Antd/Pagination.tsx new file mode 100644 index 00000000..a63ecc16 --- /dev/null +++ b/apps/web/src/common/components/Antd/Pagination.tsx @@ -0,0 +1,21 @@ +import React, { useEffect, useState } from 'react'; +import { Pagination, ConfigProvider } from 'antd'; +import getLocale from '@common/utils/getLocale'; +import zhCN from 'antd/locale/zh_CN'; +import enUS from 'antd/locale/en_US'; + +const MyTable = (props) => { + const [local, setLocale] = useState(enUS); + useEffect(() => { + const l = getLocale(); + setLocale(l === 'zh' ? zhCN : enUS); + }, []); + return ( +