mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 04:08:34 +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
|
||||
for (let i = 0, j = array.length; i < j; i++) {
|
||||
const property = array[i]
|
||||
value = current[property]
|
||||
value = current[property] || property
|
||||
if (i === j - 1) return value
|
||||
if (!value) return ''
|
||||
current = value
|
||||
|
Loading…
Reference in New Issue
Block a user