formatting

This commit is contained in:
Taylor Otwell 2018-01-24 08:09:32 -06:00
parent 02a125d653
commit eb3872ae49
1 changed files with 1 additions and 3 deletions

View File

@ -137,12 +137,10 @@ After defining a translation string that has pluralization options, you may use
echo trans_choice('messages.apples', 10);
You may also define parameters in translation string:
You may also define place-holder attributes in pluralization strings. These place-holders may be replaced by passing an array as the third argument to the `trans_choice` function:
'minutes_ago' => '{1} :value minute ago|[2,*] :value minutes ago',
Array of replacements should be passed as third argument of `trans_choice` function:
echo trans_choice('time.minutes_ago', 5, ['value' => 5]);
<a name="overriding-package-language-files"></a>