File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
examples/bridge/composition/scope
packages/vue-i18n-core/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 " />
5
5
< title > Local scope example</ title >
6
- < script src ="https://cdn.jsdelivr.net/npm/vue@2.7.4 /dist/vue.js "> </ script >
6
+ < script src ="https://cdn.jsdelivr.net/npm/vue@2.6.14 /dist/vue.js "> </ script >
7
7
< script src ="https://unpkg.com/vue-i18n@8/dist/vue-i18n.js "> </ script >
8
+ < script src ="
https://cdn.jsdelivr.net/npm/@vue/[email protected] "
> </ script >
8
9
< script src ="
https://unpkg.com/[email protected] /lib/index.iife.js "
> </ script >
9
10
< script src ="../../../../packages/vue-i18n-bridge/dist/vue-i18n-bridge.global.js "> </ script >
10
11
</ head >
@@ -25,6 +26,7 @@ <h1>Root</h1>
25
26
const { createApp } = VueDemi
26
27
const { createI18n, useI18n } = VueI18nBridge
27
28
29
+ Vue . use ( VueCompositionAPI )
28
30
Vue . use ( VueI18n , { bridge : true } )
29
31
30
32
const Child = {
Original file line number Diff line number Diff line change @@ -1033,7 +1033,7 @@ function setupLifeCycle(
1033
1033
onBeforeMount ( ( ) => {
1034
1034
vm . _i18n . subscribeDataChanging ( vm )
1035
1035
subscribing = true
1036
- } , vm )
1036
+ } )
1037
1037
1038
1038
onUnmounted ( ( ) => {
1039
1039
if ( subscribing ) {
@@ -1051,7 +1051,7 @@ function setupLifeCycle(
1051
1051
}
1052
1052
delete vm . _i18n_bridge
1053
1053
delete vm . _i18n
1054
- } , vm )
1054
+ } )
1055
1055
} else {
1056
1056
onMounted ( ( ) => {
1057
1057
// inject composer instance to DOM for intlify-devtools
You can’t perform that action at this time.
0 commit comments