The pluralIdx function works in a similar way to the pluralize template filter, determining if a given count should use a plural form of a word or not.
https://docs.djangoproject.com/en/stable/topics/i18n/translation/#pluralidx
pluralIdx(0);// truepluralIdx(1);// falsepluralIdx(2);// true Copy
pluralIdx(0);// truepluralIdx(1);// falsepluralIdx(2);// true
The pluralIdx function works in a similar way to the pluralize template filter, determining if a given count should use a plural form of a word or not.
https://docs.djangoproject.com/en/stable/topics/i18n/translation/#pluralidx