list with period: full sentences in translation component

This commit is contained in:
Julien Fastré 2022-04-25 20:56:24 +02:00
parent 57d6240cd1
commit 916560c522
2 changed files with 14 additions and 7 deletions

View File

@ -246,8 +246,8 @@
data-bs-target="#collapse_{{ person.id }}"
aria-expanded="false"
aria-controls="collapse_{{ person.id }}">
<span class="folded">{{ 'show'|trans }} {{ 'periods.number of periods'|trans({ 'nb_items': acpsClosed|length }) }}{{ 'closed periods'|trans }}</span>
<span class="unfolded text-secondary">{{ 'hide'|trans }} {{ 'closed periods'|trans }}</span>
<span class="folded">{{ 'periods.show closed periods'|trans({ 'nb_items': acpsClosed|length }) }}</span>
<span class="unfolded text-secondary">{{ 'periods.hide closed periods'|trans({ 'nb_items': acpsClosed|length }) }}</span>
</button>
</h2>

View File

@ -116,10 +116,17 @@ household_composition:
}
periods:
number of periods: >-
show closed periods: >-
{nb_items, plural,
=0 {Aucun }
one {un }
many {# }
other {# }
=0 {Aucun parcours clôturé}
one {Montrer un parcours clôturé}
many {Montrer # parcours clôturés}
other {Montrer # parcours clôturés}
}
hide closed periods: >-
{nb_items, plural,
=0 {Aucun parcours clôturé}
one {Masquer un parcours clôturé}
many {Masquer # parcours clôturés}
other {Masquer # parcours clôturés}
}