minor #4358 Update plural.rst: Fixing filter name (ThomasLandauer)

This PR was merged into the 3.x branch.

Discussion
----------

Update plural.rst: Fixing filter name

Info is taken from https://github.com/twigphp/Twig/pull/4357#issuecomment-2378435199

Besides, I changed to a more illustrative example word. One of the rare cases where ChatGPT was indeed useful... ;-)

Commits
-------

bd33033fd1 Update plural.rst: Fixing filter name
This commit is contained in:
Fabien Potencier
2024-09-27 10:48:07 +02:00
+4 -4
View File
@@ -11,11 +11,11 @@ plural version:
.. code-block:: twig
{# English (en) rules are used by default #}
{{ 'partition'|pluralize() }}
partitions
{{ 'animal'|plural() }}
animals
{{ 'partition'|pluralize('fr') }}
partitions
{{ 'animal'|plural('fr') }}
animaux
.. note::