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

25 lines
410 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
2016-10-14 21:45:48 +08:00
order: 1
title:
zh-CN: 国际化
2016-10-07 15:33:04 +08:00
en-US: Locale text
2016-03-31 09:40:55 +08:00
---
2015-11-24 11:21:37 +08:00
## zh-CN
2016-10-07 15:33:04 +08:00
使用 `okText``cancelText` 自定义按钮文字。
2015-11-24 11:21:37 +08:00
## en-US
2016-10-07 15:33:04 +08:00
Set `okText` and `cancelText` props to customise the button's labels.
2017-01-19 15:19:03 +08:00
````__react
2015-11-24 11:21:37 +08:00
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>
, mountNode);
2015-11-24 11:21:37 +08:00
````