ElemeFE / ElemeFE/element

[Bug Report] element-ui/src/locale/ index.js The source code uses obsolete attributes

Open
#20,826 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.1

### OS/Browsers version
windows 10

### Vue version
2.6.12

### Reproduction Link
https://codepen.io/pen/?&prefill_data_id=3800e316-5d31-4b92-8271-78fe53aecf9e

### Steps to reproduce
重现链接不需要,问题出在源码上。
请查看element-ui/src/locale/index.js文件第11行有个判断语句`if (typeof vuei18n === 'function' && !!Vue.locale)`;
这个Vue.locale已经废弃了,导致这个判断永远都进不来,最终导致切换语言,对应语言文字不切换。

### What is Expected?
切换语言,文字相对应变换。

### What is actually happening?
切换语言,文字相对应不变换。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.