Skip to content

Commit aab0dce

Browse files
authored
1 parent a04c6ed commit aab0dce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
app.config.globalProperties.$translate = key => {
4444
return key.split('.').reduce((o, i) => {
4545
if (o) return o[i]
46-
}, i18n)
46+
}, options)
4747
}
4848
}
4949
}
@@ -69,7 +69,7 @@ export default {
6969
app.config.globalProperties.$translate = key => {
7070
return key.split('.').reduce((o, i) => {
7171
if (o) return o[i]
72-
}, i18n)
72+
}, options)
7373
}
7474

7575
app.provide('i18n', options)
@@ -87,7 +87,7 @@ export default {
8787
install: (app, options) => {
8888
app.config.globalProperties.$translate = (key) => {
8989
return key.split('.')
90-
.reduce((o, i) => { if (o) return o[i] }, i18n)
90+
.reduce((o, i) => { if (o) return o[i] }, options)
9191
}
9292

9393
app.provide('i18n', options)

0 commit comments

Comments
 (0)