{#- Expects: n (integer), pl (i18n key prefix with .one, .few, .many). Prints the word form for n: Russian needs three (1 организация, 3 организации, 5 организаций); Kazakh repeats one word. -#} {%- set n10 = n % 10 -%}{%- set n100 = n % 100 -%} {%- if n10 == 1 and n100 != 11 -%}{{ t(pl ~ '.one') }} {%- elif n10 >= 2 and n10 <= 4 and (n100 < 12 or n100 > 14) -%}{{ t(pl ~ '.few') }} {%- else -%}{{ t(pl ~ '.many') }} {%- endif -%}