We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04c6ed commit aab0dceCopy full SHA for aab0dce
src/guide/plugins.md
@@ -43,7 +43,7 @@ export default {
43
app.config.globalProperties.$translate = key => {
44
return key.split('.').reduce((o, i) => {
45
if (o) return o[i]
46
- }, i18n)
+ }, options)
47
}
48
49
@@ -69,7 +69,7 @@ export default {
69
70
71
72
73
74
75
app.provide('i18n', options)
@@ -87,7 +87,7 @@ export default {
87
install: (app, options) => {
88
app.config.globalProperties.$translate = (key) => {
89
return key.split('.')
90
- .reduce((o, i) => { if (o) return o[i] }, i18n)
+ .reduce((o, i) => { if (o) return o[i] }, options)
91
92
93
0 commit comments