ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[Bug Report] Incorrect locale in popconfirm component #19430

Open proea opened 4 years ago

proea commented 4 years ago

Element UI version

2.13.1

OS/Browsers version

macOS / Google Chrome 81.0

Vue version

2.6.11

Reproduction Link

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

bmfs commented 3 years ago

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

stale[bot] commented 2 years ago

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.