Skip to content

Commit

Permalink
Adding documentation for :count placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
thannaske authored Oct 1, 2018
1 parent 363abbf commit 3cd1a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ You may also define place-holder attributes in pluralization strings. These plac
'minutes_ago' => '{1} :value minute ago|[2,*] :value minutes ago',

echo trans_choice('time.minutes_ago', 5, ['value' => 5]);

If you would like to display the integer value that was passed to the `trans_choice` function, you may use the `:count` placeholder:

'apples' => '{0} There are none|{1} There is one|[2,*] There are :count',

<a name="overriding-package-language-files"></a>
## Overriding Package Language Files
Expand Down

0 comments on commit 3cd1a35

Please sign in to comment.