We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d48a5e1 commit aee7ef1Copy full SHA for aee7ef1
docs/guide/essentials/pluralization.md
@@ -90,12 +90,12 @@ The number can be accessed within locale messages via predefined named arguments
90
The following is an example of using `$t`:
91
92
```html
93
-<p>{{ $t('apple', 10, { count: 10 }) }}</p>
+<p>{{ $t('apple', 10, { named: { count: 10 } }) }}</p>
94
<p>{{ $t('apple', 10) }}</p>
95
96
-<p>{{ $t('banana', 1, { n: 1 }) }}</p>
+<p>{{ $t('banana', 1, { named: { n: 1 } }) }}</p>
97
<p>{{ $t('banana', 1) }}</p>
98
-<p>{{ $t('banana', 100, { n: 'too many' }) }}</p>
+<p>{{ $t('banana', 100, { named: { n: 'too many' } }) }}</p>
99
```
100
101
In the above some examples, the first argument is the locale messages key and the second argument is the numeric value or object.
0 commit comments