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/essentials/pluralization.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,13 @@ const messages = {
19
19
}
20
20
```
21
21
22
-
It’s `en` locale an object that has `car` and `apple`.
22
+
Here, we have an `en` locale object that has `car` and `apple`.
23
23
24
-
The `car` has `car | cars` pluralization message, and the `apple` has `no apples | one apple | {count} apples` pluralization message.
24
+
The `car` has `car | cars` pluralization message, while the `apple` has `no apples | one apple | {count} apples` pluralization message.
25
25
26
26
These plural messages are selected by the logic of the choice rule for each language in the translaton API according to the numeric value you specify at the translation API.
27
27
28
-
Vue I18n will be offered some pluralization ways. Here we’ll use the `$tc`.
28
+
Vue I18n offers some ways to support pluralization. Here we’ll use the `$tc`.
29
29
30
30
:::tip NOTE
31
31
`$tc` has some overloads. About these overloads, see the [API Reference](../../api/injection#tc-key)
@@ -82,7 +82,7 @@ const messages = {
82
82
}
83
83
```
84
84
85
-
It’s `en` locale an object that has `apple` and `banana`.
85
+
Here, we have an `en` locale object that has `apple` and `banana`.
86
86
87
87
The `apple` has `no apples | one apple | {count} apples` pluralization message, and the `banana` has `no bananas | {n} banana | {n} bananas` pluralization message.
88
88
@@ -143,7 +143,7 @@ function customRule(choice, choicesLength, orgRule) {
143
143
144
144
To use the custom rules defined above, inside of `createI18n` set either:
0 commit comments