move hybrid translation to full front translation

This commit is contained in:
imperosol
2025-02-25 11:10:05 +01:00
parent 71b3588577
commit 94d2c5660a
4 changed files with 40 additions and 30 deletions

View File

@ -92,17 +92,7 @@
<div>
<br>
<strong>{% trans %}Weekly event{% endtrans %}</strong>
{# hybrid translation : the text is translated server-side,
but the interpolation of `nbEvents` is done client-side. #}
<p
x-text="interpolate('
{%- trans trimmed -%}
This event will take place every week for %s weeks.
If you moderate or delete this event,
it will also be moderated (or deleted) for the following weeks.
{%- endtrans -%}
', [nbEvents])"
></p>
<p x-text="weeklyEventWarningMessage(nbEvents)"></p>
</div>
</template>
</div>