You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a plural choice translate string in my twig template: {{ '{0} Coming soon |{1} 1 Open Position|[2,Inf[ :count Open positions'|__(hiring.job_count, {count: hiring.job_count}) }}
When hiring.job_count is 1, the selected string will be "Coming Soon", instead of the expected "1 Open Position"
Replacing the literal 1 in the singular string causes the proper string to be selected, these two examples both work as expected:
{{ '{0} Coming soon |{1} :count Open Position|[2,Inf[ :count Open positions'|__(hiring.job_count, {count: hiring.job_count}) }}
{{ '{0} Coming soon |{1} One Open Position|[2,Inf[ :count Open positions'|__(hiring.job_count, {count: hiring.job_count}) }}
Note that when using laravels transchoice filter, this issue does not occur {{ '{0} Coming soon |{1} 1 Open Position|[2,Inf[ :count Open positions'|transchoice(hiring.job_count) }}
The text was updated successfully, but these errors were encountered:
I have a plural choice translate string in my twig template:
{{ '{0} Coming soon |{1} 1 Open Position|[2,Inf[ :count Open positions'|__(hiring.job_count, {count: hiring.job_count}) }}
When hiring.job_count is 1, the selected string will be "Coming Soon", instead of the expected "1 Open Position"
Replacing the literal 1 in the singular string causes the proper string to be selected, these two examples both work as expected:
Note that when using laravels transchoice filter, this issue does not occur
{{ '{0} Coming soon |{1} 1 Open Position|[2,Inf[ :count Open positions'|transchoice(hiring.job_count) }}
The text was updated successfully, but these errors were encountered: