element [Bug Report] Incorrect locale in popconfirm component

ttvkxqim  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(86)

Element UI version

2.13.1

OS/Browsers version

macOS / Google Chrome 81.0

Vue version

2.6.11

https://codepen.io/evgenij_/pen/VwvEMRG

Steps to reproduce

Please use this Reproduction Link https://codesandbox.io/s/proud-moon-2cshd?file=/src/main.js instead of codepen

  1. Click to the button - buttons lang is zh-CN instead of EN

What is Expected?

EN locale is expected

What is actually happening?

zh-CN is used for this component (popconfirm) even if i18n with en locale is used

bejyjqdl

bejyjqdl1#

The confirmButtonText/cancelButtonText prop defaults needs to be function, otherwise the default locale will be used.

relj7zay

relj7zay2#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题