Skip to content

Commit 00ad2d0

Browse files
committed
update docs
1 parent 12a7663 commit 00ad2d0

File tree

18 files changed

+36
-36
lines changed

18 files changed

+36
-36
lines changed

examples/composable/component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>Root</h1>
2222
</div>
2323
<script>
2424
const { createApp } = Vue
25-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
25+
const { createI18nComposer, useI18n } = VueI18n
2626

2727
const i18n = createI18nComposer({
2828
locale: 'ja',
@@ -66,7 +66,7 @@ <h1>Component1</h1>
6666
return useI18n()
6767
}
6868
})
69-
app.provide(GlobalI18nSymbol, i18n)
69+
app.use(i18n)
7070
app.mount('#app')
7171
</script>
7272
</body>

examples/composable/datetime.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>DateTime Localization with Composable API</h1>
2020
</div>
2121
<script>
2222
const { createApp } = Vue
23-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
23+
const { createI18nComposer, useI18n } = VueI18n
2424

2525
const i18n = createI18nComposer({
2626
locale: 'ja-JP',
@@ -65,7 +65,7 @@ <h1>DateTime Localization with Composable API</h1>
6565
return useI18n()
6666
}
6767
})
68-
app.provide(GlobalI18nSymbol, i18n)
68+
app.use(i18n)
6969
app.mount('#app')
7070
</script>
7171
</body>

examples/composable/fallback/basic.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<script>
1414
const { createApp } = Vue
15-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
15+
const { createI18nComposer, useI18n } = VueI18n
1616

1717
const i18n = createI18nComposer({
1818
locale: 'ja',
@@ -33,7 +33,7 @@
3333
return useI18n()
3434
}
3535
})
36-
app.provide(GlobalI18nSymbol, i18n)
36+
app.use(i18n)
3737
app.mount('#app')
3838
</script>
3939
</body>

examples/composable/fallback/default-format.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323
<script>
2424
const { createApp } = Vue
25-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
25+
const { createI18nComposer, useI18n } = VueI18n
2626

2727
const i18n = createI18nComposer({
2828
locale: 'ja',
@@ -38,7 +38,7 @@
3838
return useI18n()
3939
}
4040
})
41-
app.provide(GlobalI18nSymbol, i18n)
41+
app.use(i18n)
4242
app.mount('#app')
4343
</script>
4444
</body>

examples/composable/fallback/format.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<script>
1414
const { createApp } = Vue
15-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
15+
const { createI18nComposer, useI18n } = VueI18n
1616

1717
const i18n = createI18nComposer({
1818
locale: 'ja',
@@ -29,7 +29,7 @@
2929
return useI18n()
3030
}
3131
})
32-
app.provide(GlobalI18nSymbol, i18n)
32+
app.use(i18n)
3333
app.mount('#app')
3434
</script>
3535
</body>

examples/composable/fallback/option.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</div>
1616
<script>
1717
const { createApp } = Vue
18-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
18+
const { createI18nComposer, useI18n } = VueI18n
1919

2020
const i18n = createI18nComposer({
2121
locale: 'ja',
@@ -36,7 +36,7 @@
3636
return useI18n()
3737
}
3838
})
39-
app.provide(GlobalI18nSymbol, i18n)
39+
app.use(i18n)
4040
app.mount('#app')
4141
</script>
4242
</body>

examples/composable/fallback/suppress.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<script>
1414
const { createApp } = Vue
15-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
15+
const { createI18nComposer, useI18n } = VueI18n
1616

1717
const i18n = createI18nComposer({
1818
locale: 'ja',
@@ -34,7 +34,7 @@
3434
return useI18n()
3535
}
3636
})
37-
app.provide(GlobalI18nSymbol, i18n)
37+
app.use(i18n)
3838
app.mount('#app')
3939
</script>
4040
</body>

examples/composable/formatting/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<script>
2121
const { createApp } = Vue
22-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
22+
const { createI18nComposer, useI18n } = VueI18n
2323

2424
const i18n = createI18nComposer({
2525
locale: 'ja',
@@ -44,7 +44,7 @@
4444
return useI18n()
4545
}
4646
})
47-
app.provide(GlobalI18nSymbol, i18n)
47+
app.use(i18n)
4848
app.mount('#app')
4949
</script>
5050
</body>

examples/composable/formatting/named.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<script>
2121
const { createApp } = Vue
22-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
22+
const { createI18nComposer, useI18n } = VueI18n
2323

2424
const i18n = createI18nComposer({
2525
locale: 'ja',
@@ -44,7 +44,7 @@
4444
return useI18n()
4545
}
4646
})
47-
app.provide(GlobalI18nSymbol, i18n)
47+
app.use(i18n)
4848
app.mount('#app')
4949
</script>
5050
</body>

examples/composable/formatting/ruby.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<script>
2121
const { createApp } = Vue
22-
const { createI18nComposer, useI18n, GlobalI18nSymbol } = VueI18n
22+
const { createI18nComposer, useI18n } = VueI18n
2323

2424
const i18n = createI18nComposer({
2525
locale: 'ja',
@@ -44,7 +44,7 @@
4444
return useI18n()
4545
}
4646
})
47-
app.provide(GlobalI18nSymbol, i18n)
47+
app.use(i18n)
4848
app.mount('#app')
4949
</script>
5050
</body>

0 commit comments

Comments
 (0)