diff --git a/docs/guide/essentials/pluralization.md b/docs/guide/essentials/pluralization.md index a58148720..55ec6e470 100644 --- a/docs/guide/essentials/pluralization.md +++ b/docs/guide/essentials/pluralization.md @@ -90,12 +90,12 @@ The number can be accessed within locale messages via predefined named arguments The following is an example of using `$t`: ```html -

{{ $t('apple', 10, { count: 10 }) }}

+

{{ $t('apple', 10, { named: { count: 10 } }) }}

{{ $t('apple', 10) }}

-

{{ $t('banana', 1, { n: 1 }) }}

+

{{ $t('banana', 1, { named: { n: 1 } }) }}

{{ $t('banana', 1) }}

-

{{ $t('banana', 100, { n: 'too many' }) }}

+

{{ $t('banana', 100, { named: { n: 'too many' } }) }}

``` In the above some examples, the first argument is the locale messages key and the second argument is the numeric value or object.