Add this to your helpers file
if (! function_exists('__choice')) {
/**
* @param string $key
* @param int $count
*
* @return string
*/
function __choice(string $key, int $count) : string
{
return trans_choice(__($key), $count);
}
}
Use it in your views like this
{{ __choice('results for', $total) }}
In your JSON translations, you can still use all default parameters and constructions
{
"results for": "{0} Geen resultaten voor|{1} Eén resultaat voor|[2,*] :count resultaten voor"
}