File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default {
43
43
app .config .globalProperties .$translate = key => {
44
44
return key .split (' .' ).reduce ((o , i ) => {
45
45
if (o) return o[i]
46
- }, i18n )
46
+ }, options )
47
47
}
48
48
}
49
49
}
@@ -69,7 +69,7 @@ export default {
69
69
app .config .globalProperties .$translate = key => {
70
70
return key .split (' .' ).reduce ((o , i ) => {
71
71
if (o) return o[i]
72
- }, i18n )
72
+ }, options )
73
73
}
74
74
75
75
app .provide (' i18n' , options)
@@ -87,7 +87,7 @@ export default {
87
87
install : (app , options ) => {
88
88
app .config .globalProperties .$translate = (key ) => {
89
89
return key .split (' .' )
90
- .reduce ((o , i ) => { if (o) return o[i] }, i18n )
90
+ .reduce ((o , i ) => { if (o) return o[i] }, options )
91
91
}
92
92
93
93
app .provide (' i18n' , options)
You can’t perform that action at this time.
0 commit comments