mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
563 B
563 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
用 LocaleProvider
包裹你的应用,并引用对应的语言包。
en-US
Wrap your app with LocaleProvider
, and apply the corresponding language package.
import { Pagination, LocaleProvider } from 'antd';
import zhCN from 'antd/lib/locale-provider/zh_CN';
const App = () => (
<div>
<Pagination defaultCurrent={1} total={50} showSizeChanger />
</div>
);
ReactDOM.render(
<LocaleProvider locale={zhCN}>
<App />
</LocaleProvider>,
mountNode,
);