You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
562 B

---
order: 1
title:
zh-CN: 国际化
en-US: Localization
---
## zh-CN
`LocaleProvider` 包裹你的应用,并引用对应的语言包。
## en-US
8 years ago
Wrap your app with `LocaleProvider`, and apply the corresponding language package.
````jsx
import { Pagination, LocaleProvider } from 'antd';
import zhCN from 'antd/lib/locale-provider/zh_CN';
8 years ago
const App = () => (
<div>
<Pagination defaultCurrent={1} total={50} showSizeChanger />
</div>
8 years ago
);
ReactDOM.render(
<LocaleProvider locale={zhCN}>
<App />
</LocaleProvider>
, mountNode);
````