ant-design/components/popconfirm/demo/locale.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00

25 lines
399 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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