Skip to content

Commit 6c8c9a3

Browse files
committed
docs: add breaking changes for v11
1 parent 22bbf43 commit 6c8c9a3

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/.vitepress/config.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'vitepress'
21
import type { HeadConfig } from 'vitepress'
2+
import { defineConfig } from 'vitepress'
33

44
const head: HeadConfig[] = [['link', { rel: 'icon', href: '/vue-i18n-logo.png' }]]
55

@@ -206,6 +206,10 @@ function sidebarGuide() {
206206
text: 'Breaking Changes in v10',
207207
link: '/guide/migration/breaking10'
208208
},
209+
{
210+
text: 'Breaking Changes in v11',
211+
link: '/guide/migration/breaking11'
212+
},
209213
{
210214
text: 'New Features in v9',
211215
link: '/guide/migration/features'

docs/guide/migration/breaking11.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Breaking Changes in v11
2+
3+
## Deprecate Legacy API mode
4+
5+
### Reason
6+
7+
The Legacy API mode was the API mode compatible with v8 for Vue 2. When v9 was released, the Legacy API was provided to smooth the migration from v8 to v9.
8+
9+
Legacy API mode will be deprecated in v11, as previous vue-i18n releases have already provided the following to support migration to Composition API mode
10+
11+
Migration from Legacy API mode to Composition API mode: https://vue-i18n.intlify.dev/guide/migration/vue3.html
12+
Composition API usage: https://vue-i18n.intlify.dev/guide/advanced/composition.html
13+
14+
For compatibility, Legacy API mode still works in v11, but will be removed entirely in v12, so Legacy API mode will not work after that version.
15+
16+
## Drop `tc` and `$tc` for Legacy API mode
17+
18+
**Reason**: These APIs had already deprecated in warning about being dropped in v11. docs says, https://vue-i18n.intlify.dev/guide/migration/breaking10.html#deprecate-tc-and-tc-for-legacy-api-mode

0 commit comments

Comments
 (0)