From 6da9ac82d477f5553ee2c4b014702b995c21176f Mon Sep 17 00:00:00 2001 From: WebVPF <61043464+WebVPF@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:16:32 +0200 Subject: [PATCH] Fixed name of the Twig filter transchoice Fixed the name of the Twig filter `transchoice` https://github.com/wintercms/winter/blob/bb79834af1690c63cc642af72a560e5f7e0d3c4a/modules/system/ServiceProvider.php#L220 --- markup/filters/trans.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markup/filters/trans.md b/markup/filters/trans.md index 5a1980a2..5ef48315 100644 --- a/markup/filters/trans.md +++ b/markup/filters/trans.md @@ -27,11 +27,11 @@ Replacing parameters in translation strings is possible by passing an array as t The `trans_choice` function is used to process pluralized values. ```twig -{{ 'There is one snowflake|There are many snowflakes' | trans_choice(7) }} +{{ 'There is one snowflake|There are many snowflakes' | transchoice(7) }} ``` The second argument can contain the parameters. ```twig -{{ '{1} :value minute ago|[2,*] :value minutes ago' | trans_choice(5, { value: 5 }) }} +{{ '{1} :value minute ago|[2,*] :value minutes ago' | transchoice(5, { value: 5 }) }} ```