mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 22:17:36 +00:00
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:
@@ -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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user