2016-03-31 09:40:55 +08:00
|
|
|
|
---
|
|
|
|
|
order: 2
|
2016-08-26 14:42:41 +08:00
|
|
|
|
title:
|
|
|
|
|
zh-CN: 国际化
|
|
|
|
|
en-US: Internationalization
|
2016-03-31 09:40:55 +08:00
|
|
|
|
---
|
2015-11-24 11:21:37 +08:00
|
|
|
|
|
2016-08-26 14:42:41 +08:00
|
|
|
|
## zh-CN
|
|
|
|
|
|
2015-11-24 11:21:37 +08:00
|
|
|
|
设置 `okText` `cancelText` 以自定义按钮文字。
|
|
|
|
|
|
2016-08-26 14:42:41 +08:00
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
|
|
Set `okText` and `cancelText` props to customise the buttons' labels.
|
|
|
|
|
|
2015-11-24 11:21:37 +08:00
|
|
|
|
````jsx
|
|
|
|
|
import { Popconfirm } from 'antd';
|
|
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
|
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
|
2015-11-26 12:07:27 +08:00
|
|
|
|
<a href="#">Delete</a>
|
2015-11-24 11:21:37 +08:00
|
|
|
|
</Popconfirm>
|
2015-12-29 12:08:58 +08:00
|
|
|
|
, mountNode);
|
2015-11-24 11:21:37 +08:00
|
|
|
|
````
|