mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
fix: revert locale change
This commit is contained in:
parent
ef5ddd4b14
commit
c0acd11fe2
@ -8,7 +8,7 @@ export const t = (path:string): string => {
|
|||||||
let current = lang
|
let current = lang
|
||||||
for (let i = 0, j = array.length; i < j; i++) {
|
for (let i = 0, j = array.length; i < j; i++) {
|
||||||
const property = array[i]
|
const property = array[i]
|
||||||
value = current[property]
|
value = current[property] || property
|
||||||
if (i === j - 1) return value
|
if (i === j - 1) return value
|
||||||
if (!value) return ''
|
if (!value) return ''
|
||||||
current = value
|
current = value
|
||||||
|
Loading…
Reference in New Issue
Block a user