Skip to content

Commit 89f57a8

Browse files
authored
fix: missing pluralization in form error message translation (#1273)
1 parent 7be4522 commit 89f57a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/unfold/templates/unfold/helpers/messages/errornote.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
{% if errors %}
44
<p class="errornote bg-red-100 mb-8 text-red-700 px-3 py-3 rounded-default dark:bg-red-500/20 dark:border-red-500/20 dark:text-red-400">
5-
{% if errors.items|length == 1 %}
6-
{% translate "Please correct the error below." %}
7-
{% else %}
8-
{% translate "Please correct the errors below." %}
9-
{% endif %}
5+
{% blocktranslate count counter=errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}
106
</p>
117
{% endif %}

0 commit comments

Comments
 (0)