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... ;-)
This commit is contained in:
Thomas Landauer
2024-09-27 10:46:21 +02:00
committed by GitHub
parent f6972c42cf
commit bd33033fd1
+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::