Wire::_n PHP Method

_n() public method

Perform a language translation with singular and plural versions
public _n ( string $textSingular, string $textPlural, integer $count ) : string
$textSingular string Singular version of text (when there is 1 item)
$textPlural string Plural version of text (when there are multiple items or 0 items)
$count integer Quantity used to determine whether singular or plural.
return string Translated text or original text if translation not available.
    public function _n($textSingular, $textPlural, $count)
    {
        return _n($textSingular, $textPlural, $count, $this);
    }