Skip to content

Commit f7fef2a

Browse files
committed
docs: add limitation on vue3 migration
1 parent 4f67b2c commit f7fef2a

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

docs/guide/migration/vue3.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ From Vue I18n v9.2, the Legacy API mode can also be used with Composition API mo
1616

1717
### Limitations
1818

19-
**The Composition API in Legacy API mode does not support SSR**, So You should understand as a limited feature for migration.
19+
:::warning NOTICE
20+
You should understand as a limited feature for migration.
21+
:::
22+
23+
- The Composition API in Legacy API mode does not support SSR
24+
- If you want to use correctly Vue I18n Composition API (e.g `t`) on `setup` function context directly not `<template>`, you need to call via `nextTick` callback context.
2025

2126
### How to migration
2227

@@ -29,7 +34,7 @@ import { createI18n } from 'vue-i18n'
2934

3035
const i18n = createI18n({
3136
locale: 'en',
32-
allowCompositoin: true, // you need to specify that!
37+
allowComposition: true, // you need to specify that!
3338
messages: {
3439
en: {
3540
hello: 'hello!'

docs/ja/guide/migration/vue3.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ From Vue I18n v9.2, the Legacy API mode can also be used with Composition API mo
1818

1919
### Limitations
2020

21-
**The Composition API in Legacy API mode does not support SSR**, So You should understand as a limited feature for migration.
21+
:::warning NOTICE
22+
You should understand as a limited feature for migration.
23+
:::
24+
25+
- The Composition API in Legacy API mode does not support SSR
26+
- If you want to use correctly Vue I18n Composition API (e.g `t`) on `setup` function context directly not `<template>`, you need to call via `nextTick` callback context.
2227

2328
### How to migration
2429

@@ -31,7 +36,7 @@ import { createI18n } from 'vue-i18n'
3136

3237
const i18n = createI18n({
3338
locale: 'en',
34-
allowCompositoin: true, // you need to specify that!
39+
allowComposition: true, // you need to specify that!
3540
messages: {
3641
en: {
3742
hello: 'hello!'

0 commit comments

Comments
 (0)