Skip to content

Commit aee7ef1

Browse files
authored
docs: fix wrong plural example (#2033)
1 parent d48a5e1 commit aee7ef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/essentials/pluralization.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ The number can be accessed within locale messages via predefined named arguments
9090
The following is an example of using `$t`:
9191

9292
```html
93-
<p>{{ $t('apple', 10, { count: 10 }) }}</p>
93+
<p>{{ $t('apple', 10, { named: { count: 10 } }) }}</p>
9494
<p>{{ $t('apple', 10) }}</p>
9595

96-
<p>{{ $t('banana', 1, { n: 1 }) }}</p>
96+
<p>{{ $t('banana', 1, { named: { n: 1 } }) }}</p>
9797
<p>{{ $t('banana', 1) }}</p>
98-
<p>{{ $t('banana', 100, { n: 'too many' }) }}</p>
98+
<p>{{ $t('banana', 100, { named: { n: 'too many' } }) }}</p>
9999
```
100100

101101
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

Comments
 (0)