tc()
Translates a count
Parameters
Name | Type | Default | Description |
---|---|---|---|
$key * | string |
– | |
$count * | int |
– | |
$locale | string |null |
null |
|
$formatNumber | bool |
true |
If set to false , the count is not formatted |
Return type
mixed
|null
Example
Given a translation with a placeholder. You can define the translation as an array for different counts.
Replace placeholder with given number.