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.

25 lines
406 B

---
order: 2
title:
zh-CN: 国际化
8 years ago
en-US: Locale text
---
## zh-CN
8 years ago
使用 `okText``cancelText` 自定义按钮文字。
## en-US
8 years ago
Set `okText` and `cancelText` props to customise the button's labels.
````jsx
import { Popconfirm } from 'antd';
ReactDOM.render(
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
<a href="#">Delete</a>
</Popconfirm>
, mountNode);
````