You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/advanced/composition.md
-2
Original file line number
Diff line number
Diff line change
@@ -137,8 +137,6 @@ For more details of `t`, see the [API Reference](../../api/composition#t-key).
137
137
138
138
## Pluralization
139
139
140
-
In the Legacy API mode, the plural form of the message was translated using either `$tc` or the VueI18n instance of `tc` to translate the message.
141
-
142
140
In the Composition API mode, the plural form of the message is left in syntax as in the Legacy API mode, but is translated using the `t` of the Composer instance:
Copy file name to clipboardExpand all lines: docs/guide/essentials/local.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
[In *'Scope and Locale Changing’*](scope), Vue I18n has two scope concepts, global scope and local scope.
6
6
7
-
In general, locale info (e.g. `locale`,`messages`, etc) is set as option of `createI18n` and it sets (install) with `app.use`. To sum up, you use global scope translation functions `$t`and `$tc`to localize them.
7
+
In general, locale info (e.g. `locale`,`messages`, etc) is set as option of `createI18n` and it sets (install) with `app.use`. To sum up, you use global scope translation functions `$t` to localize them.
8
8
9
9
Sometimes it is necessary to localize per component while still managing the resources of the local messages. In this case it can be useful to localize each local scope using i18n component option on the component instead of the global scope.
Copy file name to clipboardExpand all lines: docs/guide/essentials/pluralization.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ The `apple` has `no apples | one apple | {count} apples` pluralization message,
87
87
88
88
The number can be accessed within locale messages via predefined named arguments `{count}` and/or `{n}`. You can overwrite those predefined named arguments if necessary.
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