T
T
test2018-08-10 15:32:47
symfony
test, 2018-08-10 15:32:47

Twig pluralization for Russian numbers?

How to correctly implement the output of Russian numbers with text in Twig. That is, depending on the number, the text changes, for example 3 points, 7 points. Docks looked but even messed up and does not always work correctly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2018-08-10
@HelmutKampfe

Documentation
and more

{% transchoice count with { '%count%': count } %}
    %count% яблоко|%count% яблока|%count% яблок
{% endtranschoice %}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question