Pluralization is not working when using translation strings as keys in laravel localization

  laravel, laravel-localization, localization, php

I added this in fr.json

{
    "There is one apple|There are many apples": "Hay una manzana|Hay muchas manzanas"
}

In blade file:

{{__("There is one apple")}}

Then it shows

There is one apple

It should show Hay una manzana. Please help me to solve it.

Source: Laravel

Leave a Reply