fix: revert locale change

This commit is contained in:
zazzaz 2020-08-25 10:04:34 +08:00 committed by hangzou
parent ef5ddd4b14
commit c0acd11fe2

View File

@ -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