ant-design/components/pagination/demo/locale.md

17 lines
344 B
Markdown
Raw Normal View History

2015-11-16 14:10:42 +08:00
# 国际化
2015-11-26 12:17:19 +08:00
- order: 7
2015-11-16 14:10:42 +08:00
通过 `locale` 配置时区、语言等, 默认支持 en_US, zh_CN
---
````jsx
import { Pagination } from 'antd';
import enUS from 'antd/lib/pagination/locale/en_US';
ReactDOM.render(
2015-11-26 17:15:18 +08:00
<Pagination defaultCurrent={1} total={50} locale={enUS} />,
2015-11-16 14:10:42 +08:00
document.getElementById('components-pagination-demo-locale'));
````