matthewbaggett/twig-extension-inflect

Trivially pluralise or singularise strings in twig.

v1.3 2021-05-16 03:53 UTC

This package is auto-updated.

Last update: 2022-05-16 06:01:12 UTC


README

Trivially pluralise or singularise strings in twig

Build Status

Usage:

    {{ variable|singularise }}

or

    {{ variable|pluralise }}

Credits

Built atop of Gone.io/inflection, which is in turn built upon the work of others.