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-12-16 11:39:05 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.