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: 2024-11-16 11:31:14 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.